]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
authorMark Kettenis <kettenis@gnu.org>
Thu, 27 Nov 2003 12:43:36 +0000 (12:43 +0000)
committerMark Kettenis <kettenis@gnu.org>
Thu, 27 Nov 2003 12:43:36 +0000 (12:43 +0000)
.note.netbsdcore.procinfo section to recognize NetBSD core files.

gdb/ChangeLog
gdb/osabi.c

index 71ad93d2576cdbdf38a3a664833859117a8abb86..ab8a9e4deefab86bb6cd426ede9c26442eef5157 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-27  Mark Kettenis  <kettenis@gnu.org>
+
+       * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
+       .note.netbsdcore.procinfo section to recognize NetBSD core files.
+
 2003-11-26  Michael Chastain  <mec.gnu@mindspring.com>
 
        * cp-abi.c: Update copyright years.
index e248a2e6c4232a13a1ebdc4809de0a5eb595238e..8681170fb9e86cfc5f2bf1d59f1c5fd1d8902df8 100644 (file)
@@ -462,6 +462,13 @@ generic_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
        }
       return;
     }
+
+  /* .note.netbsdcore.procinfo notes, used by NetBSD.  */
+  if (strcmp (name, ".note.netbsdcore.procinfo") == 0 && sectsize > 0)
+    {
+      *os_ident_ptr = GDB_OSABI_NETBSD_ELF;
+      return;
+    }
 }
 
 static enum gdb_osabi