diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-01-05 04:30:46 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-01-05 04:30:46 +0000 |
commit | d7449b42d3ecdf244e2ba02be9aa58b503524272 (patch) | |
tree | 6be786acd69b5b5d51e1e02ea6e97cde8592824f /gdb/mi | |
parent | ca4976a6949dd6f5276cd48ae593ae862a2ec684 (diff) | |
download | gdb-d7449b42d3ecdf244e2ba02be9aa58b503524272.zip gdb-d7449b42d3ecdf244e2ba02be9aa58b503524272.tar.gz gdb-d7449b42d3ecdf244e2ba02be9aa58b503524272.tar.bz2 |
s/BIG_ENDIAN/BFD_ENDIAN_BIG/
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-disas.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c index 0b51324..afaf31c 100644 --- a/gdb/mi/mi-cmd-disas.c +++ b/gdb/mi/mi-cmd-disas.c @@ -242,7 +242,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc) } di.mach = TARGET_PRINT_INSN_INFO->mach; - if (TARGET_BYTE_ORDER == BIG_ENDIAN) + if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) di.endian = BFD_ENDIAN_BIG; else di.endian = BFD_ENDIAN_LITTLE; diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index eac8835..5cb1179 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -525,7 +525,7 @@ get_register (int regnum, int format) ptr = buf + 2; for (j = 0; j < REGISTER_RAW_SIZE (regnum); j++) { - register int idx = TARGET_BYTE_ORDER == BIG_ENDIAN ? j + register int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j : REGISTER_RAW_SIZE (regnum) - 1 - j; sprintf (ptr, "%02x", (unsigned char) raw_buffer[idx]); ptr += 2; |