Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Recognize OpenBSD ELF
@ 2004-01-22 21:56 Mark Kettenis
       [not found] ` <mailpost.1074808619.15112@news-sj1-1>
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2004-01-22 21:56 UTC (permalink / raw)
  To: gdb-patches

The attached patch is pretty obvious, so I committed it.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
	OpenBSD .note.openbsd.ident sections.

Index: osabi.c
===================================================================
RCS file: /cvs/src/src/gdb/osabi.c,v
retrieving revision 1.26
diff -u -p -r1.26 osabi.c
--- osabi.c 21 Jan 2004 23:07:26 -0000 1.26
+++ osabi.c 22 Jan 2004 21:53:56 -0000
@@ -473,6 +473,15 @@ generic_elf_osabi_sniff_abi_tag_sections
       return;
     }
 
+  /* .note.openbsd.ident notes, used by OpenBSD.  */
+  if (strcmp (name, ".note.openbsd.ident") == 0
+      && check_note (abfd, sect, note, "OpenBSD", 4, NT_OPENBSD_IDENT))
+    {
+      /* There is no need to check the version yet.  */
+      *osabi = GDB_OSABI_OPENBSD_ELF;
+      return;
+    }
+
   /* .note.netbsdcore.procinfo notes, used by NetBSD.  */
   if (strcmp (name, ".note.netbsdcore.procinfo") == 0)
     {


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-22 22:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-22 21:56 [PATCH] Recognize OpenBSD ELF Mark Kettenis
     [not found] ` <mailpost.1074808619.15112@news-sj1-1>
2004-01-22 22:14   ` cgd
2004-01-22 22:44     ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox