diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-31 17:00:07 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-31 17:00:07 +0000 |
commit | 0d20ae728092963c013036d93d9f0d55c04226c9 (patch) | |
tree | 91b1e3360c4e6bae8f5e8f9da961f9ad8dbccfb6 /gdb/arch-utils.c | |
parent | faaf634c109b5b97c2a51a9a0ef5ecdc596b270a (diff) | |
download | gdb-0d20ae728092963c013036d93d9f0d55c04226c9.zip gdb-0d20ae728092963c013036d93d9f0d55c04226c9.tar.gz gdb-0d20ae728092963c013036d93d9f0d55c04226c9.tar.bz2 |
2007-05-31 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
* ax-gdb.c (gen_bitfield_ref): Likewise.
* mi/mi-main.c (get_register): Likewise.
* findvar.c (default_value_from_register, extract_signed_integer)
(extract_unsigned_integer, extract_long_unsigned_integer)
(store_signed_integer, store_unsigned_integer): Likewise.
* regcache.c (regcache_dump): Likewise.
* value.c (lookup_internalvar, value_of_internalvar)
(set_internalvar): Likewise.
* defs.h: Likewise.
* valprint.c (print_binary_chars, print_octal_chars)
(print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
* infcmd.c (default_print_registers_info): Likewise.
* arch-utils.c (selected_byte_order, show_endian): Likewise.
* stabsread.c (define_symbol): Likewise.
* doublest.c (floatformat_from_length, floatformat_from_type)
(extract_typed_floating, store_typed_floating): Likewise.
* gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 1f85b38..ee9fbfb 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -245,7 +245,7 @@ enum bfd_endian selected_byte_order (void) { if (target_byte_order_user != BFD_ENDIAN_UNKNOWN) - return TARGET_BYTE_ORDER; + return gdbarch_byte_order (current_gdbarch); else return BFD_ENDIAN_UNKNOWN; } @@ -257,14 +257,14 @@ show_endian (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { if (target_byte_order_user == BFD_ENDIAN_UNKNOWN) - if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) + if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG) fprintf_unfiltered (file, _("The target endianness is set automatically " "(currently big endian)\n")); else fprintf_unfiltered (file, _("The target endianness is set automatically " "(currently little endian)\n")); else - if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) + if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG) fprintf_unfiltered (file, _("The target is assumed to be big endian\n")); else |