summaryrefslogtreecommitdiff
path: root/gdb/osabi.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r--gdb/osabi.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c
index 9d90c55959b..abf4bd44870 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -134,7 +134,7 @@ osabi_from_tdesc_string (const char *name)
/* Handler for a given architecture/OS ABI pair. There should be only
one handler for a given OS ABI each architecture family. */
-struct gdb_osabi_handler
+struct gdb_osabi_handler
{
struct gdb_osabi_handler *next;
const struct bfd_arch_info *arch_info;
@@ -253,7 +253,7 @@ gdbarch_lookup_osabi (bfd *abfd)
/* If we don't have a binary, just return unknown. The caller may
have other sources the OSABI can be extracted from, e.g., the
target description. */
- if (abfd == NULL)
+ if (abfd == NULL)
return GDB_OSABI_UNKNOWN;
match = GDB_OSABI_UNKNOWN;
@@ -493,10 +493,9 @@ generic_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
break;
default:
- internal_error (__FILE__, __LINE__,
- _("generic_elf_osabi_sniff_abi_tag_sections: "
- "unknown OS number %d"),
- abi_tag);
+ warning ("GNU ABI tag value %u unrecognized.\n", abi_tag);
+ *osabi = GDB_OSABI_UNKNOWN;
+ break;
}
return;
}
@@ -512,7 +511,7 @@ generic_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
return;
}
-
+
/* .note.netbsd.ident notes, used by NetBSD. */
if (strcmp (name, ".note.netbsd.ident") == 0
&& check_note (abfd, sect, note, &sectsize, "NetBSD", 4, NT_NETBSD_IDENT))