diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-10-10 03:14:08 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-10-10 03:14:08 +0000 |
commit | 221c12ff276105d11fed70ab120414056361760f (patch) | |
tree | cb1bf2fc887cdb2bbb87452aa60fe94a5e93d6b1 /gdb/sh-tdep.c | |
parent | ef5200c1f05fb9ef8a1e2959d89403e433d9f637 (diff) | |
download | gdb-221c12ff276105d11fed70ab120414056361760f.zip gdb-221c12ff276105d11fed70ab120414056361760f.tar.gz gdb-221c12ff276105d11fed70ab120414056361760f.tar.bz2 |
2003-10-09 Andrew Cagney <cagney@redhat.com>
Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
* config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
(SOFTWARE_SINGLE_STEP_P): Ditto.
* config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
* config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
(SOFTWARE_SINGLE_STEP_P): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
software_single_step to rs6000_software_single_step.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 35b9e71..c42e411 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -1551,8 +1551,9 @@ sh_do_fp_register (struct gdbarch *gdbarch, struct ui_file *file, int regnum) fprintf_filtered (file, "\t(raw 0x"); for (j = 0; j < register_size (gdbarch, regnum); j++) { - register int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j - : register_size (gdbarch, regnum) - 1 - j; + int idx = (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG + ? j + : register_size (gdbarch, regnum) - 1 - j); fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[idx]); } fprintf_filtered (file, ")"); |