diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 17:02:35 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 17:02:35 +0000 |
commit | e17c207e88cbd63e9dc9dce1f3458a8ced4ff566 (patch) | |
tree | 6e430d068a5c19b425cf75b9c809b445a0e25bd0 /gdb/osabi.c | |
parent | * gdbtypes.c (make_pointer_type, make_reference_type, (diff) | |
download | binutils-gdb-e17c207e88cbd63e9dc9dce1f3458a8ced4ff566.tar.gz binutils-gdb-e17c207e88cbd63e9dc9dce1f3458a8ced4ff566.tar.bz2 binutils-gdb-e17c207e88cbd63e9dc9dce1f3458a8ced4ff566.zip |
* arch-utils.c (selected_byte_order): Return target_byte_order_user.
(show_endian): Use target_byte_order_user if specified; otherwise
use get_current_arch () instead of current_gdbarch.
(show_architecture): Use set_architecture_string if specified;
otherwise use get_current_arch () instead of current_gdbarch.
(get_current_arch): New function.
* arch-utils.h (get_current_arch): Add prototype.
* osabi.c (show_osabi): Use get_current_arch () instead of
current_gdbarch.
* findcmd.c: Include "arch-utils.h".
(parse_find_args): Add BIG_P argument. Use it instead of byte order
of current_gdbarch.
(find_command): Use get_current_arch () instead of current_gdbarch.
Pass byte order to parse_find_args.
* maint.c: Include "arch-utils.h".
(maintenance_print_architecture): Use get_current_arch () instead
of current_gdbarch.
* reggroups.c: Include "arch-utils.h".
(maintenance_print_reggroups): Use get_current_arch () instead
of current_gdbarch.
* symfile.c: Include "arch-utils.h".
(overlay_load_command): Use get_current_arch () instead of
current_gdbarch.
* value.c: Include "arch-utils.h".
(show_convenience): Use get_current_arch () instead of
current_gdbarch.
* tui/tui-regs.c: Include "arch-utils.h".
(tui_reg_next_command): Use get_current_arch () instead of
current_gdbarch.
* mi/mi-main.c: Include "arch-utils.h".
(mi_cmd_data_read_memory): Use get_current_arch () instead of
current_gdbarch.
* parse.c: Include "arch-utils.h".
(parse_exp_in_context): Use get_current_arch () instead of
current_gdbarch.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r-- | gdb/osabi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c index 6024419325b..778dedcf4b6 100644 --- a/gdb/osabi.c +++ b/gdb/osabi.c @@ -596,7 +596,7 @@ show_osabi (struct ui_file *file, int from_tty, struct cmd_list_element *c, if (user_osabi_state == osabi_auto) fprintf_filtered (file, _("The current OS ABI is \"auto\" (currently \"%s\").\n"), - gdbarch_osabi_name (gdbarch_osabi (current_gdbarch))); + gdbarch_osabi_name (gdbarch_osabi (get_current_arch ()))); else fprintf_filtered (file, _("The current OS ABI is \"%s\".\n"), gdbarch_osabi_name (user_selected_osabi)); |