summaryrefslogtreecommitdiff
path: root/gdb/osabi.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-22 17:42:29 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-22 17:42:29 +0000
commit05619104e0daf43e16ddc38936d2c2fcc4fdfdd1 (patch)
treea48f0c1326b1e91a0f7b0968a03938ebc0863396 /gdb/osabi.c
parent0ad799ef606ee91fe823774f4b7ef070dac85af8 (diff)
downloadgdb-05619104e0daf43e16ddc38936d2c2fcc4fdfdd1.tar.gz
2003-06-22 Andrew Cagney <cagney@redhat.com>
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil Velikov.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r--gdb/osabi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c
index 5f935d2dfe7..252129ba7f2 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -384,6 +384,14 @@ generic_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
*os_ident_ptr = GDB_OSABI_SOLARIS;
break;
+ case GNU_ABI_TAG_FREEBSD:
+ *os_ident_ptr = GDB_OSABI_FREEBSD_ELF;
+ break;
+
+ case GNU_ABI_TAG_NETBSD:
+ *os_ident_ptr = GDB_OSABI_NETBSD_ELF;
+ break;
+
default:
internal_error
(__FILE__, __LINE__,