aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-31 17:00:07 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-31 17:00:07 +0000
commit0d20ae728092963c013036d93d9f0d55c04226c9 (patch)
tree91b1e3360c4e6bae8f5e8f9da961f9ad8dbccfb6 /gdb/mi
parentfaaf634c109b5b97c2a51a9a0ef5ecdc596b270a (diff)
downloadgdb-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/mi')
-rw-r--r--gdb/mi/mi-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 96bf423..00e19dd 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -552,7 +552,7 @@ get_register (int regnum, int format)
ptr = buf + 2;
for (j = 0; j < register_size (current_gdbarch, regnum); j++)
{
- int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j
+ int idx = gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG ? j
: register_size (current_gdbarch, regnum) - 1 - j;
sprintf (ptr, "%02x", (unsigned char) buffer[idx]);
ptr += 2;