[6/8] Recognize the recently-added FreeBSD core dump note for LWP info.
Commit Message
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.
---
binutils/ChangeLog | 4 ++++
binutils/readelf.c | 2 ++
include/ChangeLog | 4 ++++
include/elf/common.h | 1 +
4 files changed, 11 insertions(+)
Comments
On Thu, Jun 29, 2017 at 04:32:24PM -0700, John Baldwin wrote:
> 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.
OK.
@@ -1,3 +1,7 @@
+2017-06-28 John Baldwin <jhb@FreeBSD.org>
+ * readelf.c (get_freebsd_elfcore_note_type): Handle
+ NT_FREEBSD_PTLWPINFO.
+
2017-06-19 Nick Clifton <nickc@redhat.com>
PR binutils/21619
@@ -16710,6 +16710,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);
}
@@ -1,3 +1,7 @@
+2017-06-28 John Baldwin <jhb@FreeBSD.org>
+
+ * elf/common.h (NT_FREEBSD_PTLWPINFO): Define.
+
2017-06-16 Alan Modra <amodra@gmail.com>
PR ld/20022
@@ -637,6 +637,7 @@
#define NT_FREEBSD_PROCSTAT_OSREL 14 /* Procstat osreldate data. */
#define NT_FREEBSD_PROCSTAT_PSSTRINGS 15 /* Procstat ps_strings data. */
#define NT_FREEBSD_PROCSTAT_AUXV 16 /* Procstat auxv data. */
+#define NT_FREEBSD_PTLWPINFO 17 /* Thread ptrace miscellaneous info. */
/* Note segments for core files on NetBSD systems. Note name
must start with "NetBSD-CORE". */