aboutsummaryrefslogtreecommitdiff
path: root/gdb/osabi.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-06-27 21:50:37 +0000
committerDavid Carlton <carlton@bactrian.org>2003-06-27 21:50:37 +0000
commit3abe3bc90be798445086f45d9c3723165cc6c893 (patch)
tree20de3690d32dbb68a1e4266dfd13575be97ea40e /gdb/osabi.c
parentc8a2fad7b41a8264964233608ae10c35918243fb (diff)
downloadgdb-3abe3bc90be798445086f45d9c3723165cc6c893.zip
gdb-3abe3bc90be798445086f45d9c3723165cc6c893.tar.gz
gdb-3abe3bc90be798445086f45d9c3723165cc6c893.tar.bz2
2003-06-27 David Carlton <carlton@kealia.com>
* Merge with mainline; tag is carlton_dictionary-20030627-merge.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r--gdb/osabi.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c
index 2241406..252129b 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__,
@@ -531,7 +539,7 @@ set_osabi (char *args, int from_tty, struct cmd_list_element *c)
internal_error (__FILE__, __LINE__, "Updating OS ABI failed.");
}
-void
+static void
show_osabi (char *args, int from_tty)
{
if (user_osabi_state == osabi_auto)
@@ -546,6 +554,8 @@ show_osabi (char *args, int from_tty)
gdbarch_osabi_name (GDB_OSABI_DEFAULT));
}
+extern initialize_file_ftype _initialize_gdb_osabi; /* -Wmissing-prototype */
+
void
_initialize_gdb_osabi (void)
{