From 221c12ff276105d11fed70ab120414056361760f Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 10 Oct 2003 03:14:08 +0000 Subject: [PATCH] 2003-10-09 Andrew Cagney Changes from 2003-09-09 Jimi Xenidis : * 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. --- gdb/ChangeLog | 7 +++++++ gdb/ppc-tdep.h | 1 + gdb/sh-tdep.c | 5 +++-- gdb/x86-64-tdep.h | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b5229ff4e1a..912545d3dbf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-10-09 Andrew Cagney + + * ppc-tdep.h (struct type): Declare opaque. + * x86-64-tdep.h (struct regcache): Declare opaque. + * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix + coding style. + 2003-10-09 Andrew Cagney Changes from 2003-09-09 Jimi Xenidis : diff --git a/gdb/ppc-tdep.h b/gdb/ppc-tdep.h index fd150a0a436..07395a4cff9 100644 --- a/gdb/ppc-tdep.h +++ b/gdb/ppc-tdep.h @@ -26,6 +26,7 @@ struct gdbarch; struct frame_info; struct value; struct regcache; +struct type; /* From ppc-linux-tdep.c... */ CORE_ADDR ppc_linux_frame_saved_pc (struct frame_info *fi); diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 35b9e71c3ca..c42e4113b42 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, ")"); diff --git a/gdb/x86-64-tdep.h b/gdb/x86-64-tdep.h index 9163405d2cf..e800a2f68ae 100644 --- a/gdb/x86-64-tdep.h +++ b/gdb/x86-64-tdep.h @@ -27,6 +27,7 @@ struct gdbarch; struct frame_info; +struct regcache; #include "i386-tdep.h" -- 2.30.2