This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Recognize the recently-added FreeBSD core dump note for LWP info.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0b9305edf1d0b15913643b132dad02d4ca4fbb43

commit 0b9305edf1d0b15913643b132dad02d4ca4fbb43
Author: John Baldwin <jhb@FreeBSD.org>
Date:   Wed Jun 28 11:41:41 2017 -0700

    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.

Diff:
---
 binutils/ChangeLog   | 5 +++++
 binutils/readelf.c   | 2 ++
 include/ChangeLog    | 4 ++++
 include/elf/common.h | 1 +
 4 files changed, 12 insertions(+)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index b5cd595..578fc0d 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index b2f75c0..c9c11a3 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);
 }
diff --git a/include/ChangeLog b/include/ChangeLog
index 8b25ce7..a726f0d 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -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)
diff --git a/include/elf/common.h b/include/elf/common.h
index 2976c06..3a144f0 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -641,6 +641,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".  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]