[RFA/PING] Create .note.netbsdcore.procinfo section for NetBSD core files

Mark Kettenis kettenis@chello.nl
Wed Nov 26 23:46:00 GMT 2003


[ Ping!  Hmm, I probably should have posted this as a RFA in the first place. ]

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



More information about the Binutils mailing list