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] Create pseudo sections for FreeBSD NT_PTLWPINFO core notes.


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

commit e6f3b9c3194c0d89efffd6e5b59471950f979e5a
Author: John Baldwin <jhb@FreeBSD.org>
Date:   Wed Jun 28 12:47:14 2017 -0700

    Create pseudo sections for FreeBSD NT_PTLWPINFO core notes.
    
    bfd/ChangeLog:
    
    	* elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.

Diff:
---
 bfd/ChangeLog | 4 ++++
 bfd/elf.c     | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1254e7e..8e91b1d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+	* elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.
+
 2017-07-07  Alan Modra  <amodra@gmail.com>
 
 	* coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT.
diff --git a/bfd/elf.c b/bfd/elf.c
index 063a6e4..dcb0638 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -9980,6 +9980,10 @@ elfcore_grok_freebsd_note (bfd *abfd, Elf_Internal_Note *note)
       else
 	return TRUE;
 
+    case NT_FREEBSD_PTLWPINFO:
+      return elfcore_make_note_pseudosection (abfd, ".note.freebsdcore.lwpinfo",
+					      note);
+
     default:
       return TRUE;
     }


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