projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new 'info proc files' subcommand of 'info proc'.
[deliverable/binutils-gdb.git]
/
gdb
/
osabi.c
diff --git
a/gdb/osabi.c
b/gdb/osabi.c
index b4850bc9ad7a9afcaa0417280542f5c661a9bfba..7d0540b1818a01c1d9d822ea25e14b544446c254 100644
(file)
--- a/
gdb/osabi.c
+++ b/
gdb/osabi.c
@@
-1,6
+1,6
@@
/* OS ABI variant handling for GDB.
/* OS ABI variant handling for GDB.
- Copyright (C) 2001-201
7
Free Software Foundation, Inc.
+ Copyright (C) 2001-201
8
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-58,12
+58,13
@@
struct osabi_names
them in sync. */
static const struct osabi_names gdb_osabi_names[] =
{
them in sync. */
static const struct osabi_names gdb_osabi_names[] =
{
+ { "unknown", NULL },
{ "none", NULL },
{ "SVR4", NULL },
{ "GNU/Hurd", NULL },
{ "Solaris", NULL },
{ "none", NULL },
{ "SVR4", NULL },
{ "GNU/Hurd", NULL },
{ "Solaris", NULL },
- { "GNU/Linux", "linux(-gnu)?" },
+ { "GNU/Linux", "linux(-gnu
[^-]*
)?" },
{ "FreeBSD", NULL },
{ "NetBSD", NULL },
{ "OpenBSD", NULL },
{ "FreeBSD", NULL },
{ "NetBSD", NULL },
{ "OpenBSD", NULL },
@@
-335,12
+336,7
@@
gdbarch_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
struct gdb_osabi_handler *handler;
{
struct gdb_osabi_handler *handler;
- if (info.osabi == GDB_OSABI_UNKNOWN)
- {
- /* Don't complain about an unknown OSABI. Assume the user knows
- what they are doing. */
- return;
- }
+ gdb_assert (info.osabi != GDB_OSABI_UNKNOWN);
for (handler = gdb_osabi_handler_list; handler != NULL;
handler = handler->next)
for (handler = gdb_osabi_handler_list; handler != NULL;
handler = handler->next)
@@
-375,6
+371,13
@@
gdbarch_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
}
}
}
}
+ if (info.osabi == GDB_OSABI_NONE)
+ {
+ /* Don't complain about no OSABI. Assume the user knows
+ what they are doing. */
+ return;
+ }
+
warning
("A handler for the OS ABI \"%s\" is not built into this configuration\n"
"of GDB. Attempting to continue with the default %s settings.\n",
warning
("A handler for the OS ABI \"%s\" is not built into this configuration\n"
"of GDB. Attempting to continue with the default %s settings.\n",
@@
-592,7
+595,7
@@
generic_elf_osabi_sniffer (bfd *abfd)
}
\f
static void
}
\f
static void
-set_osabi (char *args, int from_tty, struct cmd_list_element *c)
+set_osabi (c
onst c
har *args, int from_tty, struct cmd_list_element *c)
{
struct gdbarch_info info;
{
struct gdbarch_info info;
@@
-603,11
+606,6
@@
set_osabi (char *args, int from_tty, struct cmd_list_element *c)
user_selected_osabi = GDB_OSABI_DEFAULT;
user_osabi_state = osabi_user;
}
user_selected_osabi = GDB_OSABI_DEFAULT;
user_osabi_state = osabi_user;
}
- else if (strcmp (set_osabi_string, "none") == 0)
- {
- user_selected_osabi = GDB_OSABI_UNKNOWN;
- user_osabi_state = osabi_user;
- }
else
{
int i;
else
{
int i;
This page took
0.042609 seconds
and
4
git commands to generate.