From a9011d31b6c7eb8d3c4f80103e360c4d3a288d86 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 6 Jan 2002 04:50:56 +0000 Subject: [PATCH] last? remaining BIG_ENDIAN switch --- gdb/ChangeLog | 5 +++++ gdb/rs6000-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8c837149dc3..36f340c8e8a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-01-05 Andrew Cagney + + * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN + with BFD_ENDIAN_BIG. + 2002-01-05 Andrew Cagney * configure.in (AC_CHECK_HEADERS): Do not check for . diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index d8c4de66ffe..147524d1aac 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1774,7 +1774,7 @@ rs6000_do_registers_info (int regnum, int fpregs) printf_filtered ("\t(raw 0x"); for (j = 0; j < REGISTER_RAW_SIZE (i); j++) { - register int idx = TARGET_BYTE_ORDER == BIG_ENDIAN ? j + register int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j : REGISTER_RAW_SIZE (i) - 1 - j; printf_filtered ("%02x", (unsigned char) raw_buffer[idx]); } -- 2.30.2