/* OS ABI variant handling for GDB.
- Copyright (C) 2001, 2002, 2003, 2004, 2007, 2008, 2009
+ Copyright (C) 2001, 2002, 2003, 2004, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of GDB.
"Interix",
"HP/UX ELF",
"HP/UX SOM",
-
"QNX Neutrino",
-
"Cygwin",
"AIX",
"DICOS",
"Darwin",
+ "Symbian",
"<invalid>"
};
}
\f
-/* Sniffer to find the OS ABI for a given file's architecture and flavour.
+/* Sniffer to find the OS ABI for a given file's architecture and flavour.
It is legal to have multiple sniffers for each arch/flavour pair, to
disambiguate one OS's a.out from another, for example. The first sniffer
to return something other than GDB_OSABI_UNKNOWN wins, so a sniffer should
break;
default:
- internal_error (__FILE__, __LINE__, _("\
-generic_elf_osabi_sniff_abi_tag_sections: unknown OS number %d"),
+ internal_error (__FILE__, __LINE__,
+ _("generic_elf_osabi_sniff_abi_tag_sections: "
+ "unknown OS number %d"),
abi_tag);
}
return;
else
{
int i;
+
for (i = 1; i < GDB_OSABI_INVALID; i++)
if (strcmp (set_osabi_string, gdbarch_osabi_name (i)) == 0)
{
{
if (user_osabi_state == osabi_auto)
fprintf_filtered (file,
- _("The current OS ABI is \"auto\" (currently \"%s\").\n"),
+ _("The current OS ABI is \"auto\" "
+ "(currently \"%s\").\n"),
gdbarch_osabi_name (gdbarch_osabi (get_current_arch ())));
else
fprintf_filtered (file, _("The current OS ABI is \"%s\".\n"),
void
_initialize_gdb_osabi (void)
{
- struct cmd_list_element *c;
-
if (strcmp (gdb_osabi_names[GDB_OSABI_INVALID], "<invalid>") != 0)
internal_error
(__FILE__, __LINE__,
/* Register the "set osabi" command. */
add_setshow_enum_cmd ("osabi", class_support, gdb_osabi_available_names,
- &set_osabi_string, _("\
-Set OS ABI of target."), _("\
-Show OS ABI of target."), NULL,
- set_osabi,
- show_osabi,
+ &set_osabi_string,
+ _("Set OS ABI of target."),
+ _("Show OS ABI of target."),
+ NULL, set_osabi, show_osabi,
&setlist, &showlist);
user_osabi_state = osabi_auto;
}