summaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-06-28 11:41:41 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2017-07-07 16:10:47 -0700
commit0b9305edf1d0b15913643b132dad02d4ca4fbb43 (patch)
treed8a7d63e35ac3ce1d053aed2a7e30784b704de2f /binutils/readelf.c
parent2af9fc4432bbda5ebd805bf5b56d81cd80d0cbf5 (diff)
Recognize the recently-added FreeBSD core dump note for LWP info.
This core dump note contains the same information returned by the ptrace PT_LWPINFO operation for each LWP belonging to a process. binutils/ChangeLog: * readelf.c (get_freebsd_elfcore_note_type): Handle NT_FREEBSD_PTLWPINFO. include/ChangeLog: * elf/common.h (NT_FREEBSD_PTLWPINFO): Define.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index b2f75c0048..c9c11a3993 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -16782,6 +16782,8 @@ get_freebsd_elfcore_note_type (unsigned e_type)
return _("NT_PROCSTAT_PSSTRINGS (ps_strings data)");
case NT_FREEBSD_PROCSTAT_AUXV:
return _("NT_PROCSTAT_AUXV (auxv data)");
+ case NT_FREEBSD_PTLWPINFO:
+ return _("NT_PTLWPINFO (ptrace_lwpinfo structure)");
}
return get_note_type (e_type);
}