From d1445327078fab938d7c16324897954018397eb3 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sun, 1 Aug 1993 16:43:32 +0000 Subject: [PATCH] * h8500-tdep.c: Add parens around a few macro args. --- gdb/ChangeLog | 4 ++++ gdb/h8500-tdep.c | 15 ++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d3dbf2eea5..0137c1c8fc6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Sun Aug 1 09:42:13 1993 Fred Fish (fnf@cygnus.com) + + * h8500-tdep.c: Add parens around a few macro args. + Fri Jul 30 15:43:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * TODO: Remove items about unix-to-unix/rapp debugging (now we diff --git a/gdb/h8500-tdep.c b/gdb/h8500-tdep.c index 782d889b441..aa38226ec40 100644 --- a/gdb/h8500-tdep.c +++ b/gdb/h8500-tdep.c @@ -61,14 +61,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ */ -#define IS_PUSH(x) ((x & 0xff00)==0x6d00) +#define IS_PUSH(x) (((x) & 0xff00)==0x6d00) #define IS_LINK_8(x) ((x) == 0x17) #define IS_LINK_16(x) ((x) == 0x1f) -#define IS_MOVE_FP(x) (x == 0x0d76) -#define IS_MOV_SP_FP(x) (x == 0x0d76) -#define IS_SUB2_SP(x) (x==0x1b87) -#define IS_MOVK_R5(x) (x==0x7905) -#define IS_SUB_R5SP(x) (x==0x1957) +#define IS_MOVE_FP(x) ((x) == 0x0d76) +#define IS_MOV_SP_FP(x) ((x) == 0x0d76) +#define IS_SUB2_SP(x) ((x) == 0x1b87) +#define IS_MOVK_R5(x) ((x) == 0x7905) +#define IS_SUB_R5SP(x) ((x) == 0x1957) #define LINK_8 0x17 #define LINK_16 0x1f @@ -214,6 +214,7 @@ NEXT_PROLOGUE_INSN (addr, lim, pword1) info about the registers saved by this frame. `fi' is a struct frame_info pointer; we fill in various fields in it to reflect the offsets of the arg pointer and the locals pointer. */ + #if 0 static CORE_ADDR examine_prologue (ip, limit, after_prolog_fp, fsr, fi) @@ -508,7 +509,7 @@ frame_find_saved_regs (frame_info, frame_saved_regs) else goto lose; #if 0 - fixme steve + /* FIXME steve */ /* If have an add:g.waddal #-n, sp next, adjust next_addr. */ if ((0x0c0177777 & read_memory_integer (pc, 2)) == 0157774) next_addr += read_memory_integer (pc += 2, 4), pc += 4; -- 2.30.2