summaryrefslogtreecommitdiff
path: root/gdb/osabi.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r--gdb/osabi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c
index 83eb767c0b7..8239e3e37f7 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -49,6 +49,8 @@ static const char * const gdb_osabi_names[] =
"ARM EABI v2",
"ARM APCS",
+ "RedBoot",
+
"<invalid>"
};
@@ -240,7 +242,7 @@ gdbarch_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch,
for (handler = gdb_osabi_handler_list; handler != NULL;
handler = handler->next)
{
- if (handler->arch == bfd_get_arch (abfd)
+ if ((abfd == NULL || handler->arch == bfd_get_arch (abfd))
&& handler->osabi == osabi)
{
(*handler->init_osabi) (info, gdbarch);