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 | 597684c51b38f2cd78c5017c2cfc24e3b2bd4096 (patch) | |
tree | 0e678c76547b26754c402b4272726f9d3bcd69d8 /gdb/osabi.c | |
parent | 7720ba9f5c9f26d6e37b265ea165bea5c992d0dd (diff) | |
download | gdb-597684c51b38f2cd78c5017c2cfc24e3b2bd4096.zip gdb-597684c51b38f2cd78c5017c2cfc24e3b2bd4096.tar.gz gdb-597684c51b38f2cd78c5017c2cfc24e3b2bd4096.tar.bz2 |
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
.note.netbsdcore.procinfo section to recognize NetBSD core files.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r-- | gdb/osabi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c index e248a2e..8681170 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 |