This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Create .note.netbsdcore.procinfo section for NetBSD core files
- From: Mark Kettenis <kettenis at chello dot nl>
- To: binutils at sources dot redhat dot com
- Date: Sun, 16 Nov 2003 10:01:11 +0100 (CET)
- Subject: [PATCH] Create .note.netbsdcore.procinfo section for NetBSD core files
Now that I have a valid copyright assignment in place for binutils
too, I formally submite the attached patch.
The rationale for the patch is that it makes life on the GDB side a
lot easier. Instead of duplicating much of the code I can simply look
for the appropriate section.
Nick, OK to check this in now?
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* elf.c (elfcore_grok_netbsd_procinfo): Create
.note.netbsdcore.procinfo section.
Index: elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.208
diff -u -p -r1.208 elf.c
--- elf.c 5 Nov 2003 13:17:08 -0000 1.208
+++ elf.c 16 Nov 2003 08:57:32 -0000
@@ -6834,7 +6834,8 @@ elfcore_grok_netbsd_procinfo (bfd *abfd,
elf_tdata (abfd)->core_command
= _bfd_elfcore_strndup (abfd, note->descdata + 0x7c, 31);
- return TRUE;
+ return elfcore_make_note_pseudosection (abfd, ".note.netbsdcore.procinfo",
+ note);
}
static bfd_boolean