]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Recognize the recently-added FreeBSD core dump note for LWP info.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 28 Jun 2017 18:41:41 +0000 (11:41 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 7 Jul 2017 23:10:47 +0000 (16:10 -0700)
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
binutils/readelf.c
include/ChangeLog
include/elf/common.h

index b5cd5950a2790cc1b7f57497381652f1fb332f55..578fc0d85c585ac1c2b80bc3eb6d7049e4696cbc 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+       * readelf.c (get_freebsd_elfcore_note_type): Handle
+       NT_FREEBSD_PTLWPINFO.
+
 2017-07-05  H.J. Lu  <hongjiu.lu@intel.com>
 
        * dwarf.c (display_debug_names): Replace index with xindex.
index b2f75c0048bfce11205102dc543bc7ca5a6f669f..c9c11a3993967fd0474838cfa25c9f4d609f4b81 100644 (file)
@@ -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);
 }
index 8b25ce724dcee0f6d800cd0f3a3ac47a57d1e6c4..a726f0d9a048cf951922fa5fcb97a5085da18945 100644 (file)
@@ -1,3 +1,7 @@
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+       * elf/common.h (NT_FREEBSD_PTLWPINFO): Define.
+
 2017-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * dwarf2.def (DW_IDX_compile_unit, DW_IDX_type_unit, DW_IDX_die_offset)
index 2976c06067cbe2497ba56fae7d5cd5c7cb5e06a7..3a144f03bc459e7c854c1f0d02b8fb411713f05e 100644 (file)
 #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".  */