diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-11-27 12:43:36 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-11-27 12:43:36 +0000 |
commit | e501c732445289c3a92580634fd3b5289197edde (patch) | |
tree | a7c9fe83aa4b3819625dd51d5cd1805ec5f73bcf /gdb | |
parent | ce2c2b9c233c97e60f673d2896dd8cf8c1ed0014 (diff) | |
download | gdb-e501c732445289c3a92580634fd3b5289197edde.tar.gz |
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
.note.netbsdcore.procinfo section to recognize NetBSD core files.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/osabi.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 71ad93d2576..ab8a9e4deef 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/osabi.c b/gdb/osabi.c index e248a2e6c42..8681170fb9e 100644 --- a/gdb/osabi.c +++ b/gdb/osabi.c @@ -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 |