diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/config/rs6000/tm-rs6000.h | 15 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 18 |
3 files changed, 27 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 91c86af..9e5baa7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Tue Jul 25 10:43:27 1995 Michael Meissner <meissner@tiktok.cygnus.com> + + * config/rs6000/tm-rs6000.h (rs6000_framedata): Rename from + aix_framedata. Change all uses. + * rs6000-tdep.c: Change all aix_framedata -> rs6000_framedata. + Sat Jul 22 23:44:18 1995 Jeff Law (law@snake.cs.utah.edu) * defs.h (ATTR_FORMAT): Disable if ANSI_PROTOTYPES is not defined. diff --git a/gdb/config/rs6000/tm-rs6000.h b/gdb/config/rs6000/tm-rs6000.h index c01e278..31a49ef 100644 --- a/gdb/config/rs6000/tm-rs6000.h +++ b/gdb/config/rs6000/tm-rs6000.h @@ -58,7 +58,7 @@ struct fp_status { /* To be used by function_frame_info. */ -struct aix_framedata { +struct rs6000_framedata { int offset; /* # of bytes in gpr's and fpr's are saved */ int saved_gpr; /* smallest # of saved gpr */ int saved_fpr; /* smallest # of saved fpr */ @@ -68,7 +68,7 @@ struct aix_framedata { }; void -function_frame_info PARAMS ((CORE_ADDR, struct aix_framedata *)); +function_frame_info PARAMS ((CORE_ADDR, struct rs6000_framedata *)); /* Define the byte order of the machine. */ @@ -152,6 +152,15 @@ function_frame_info PARAMS ((CORE_ADDR, struct aix_framedata *)); #define BIG_BREAKPOINT { 0x7d, 0x82, 0x10, 0x08 } #define LITTLE_BREAKPOINT { 0x08, 0x10, 0x82, 0x7d } +#if TARGET_BYTE_ORDER == BIG_ENDIAN +#define BREAKPOINT BIG_BREAKPOINT + +#else +#if TARGET_BYTE_ORDER == LITTLE_ENDIAN +#define BREAKPOINT LITTLE_BREAKPOINT +#endif +#endif + /* Amount PC must be decremented by after a breakpoint. This is often the number of bytes in BREAKPOINT but not always. */ @@ -460,7 +469,7 @@ CORE_ADDR rs6000_frame_chain PARAMS ((struct frame_info *)); { \ int ii; \ CORE_ADDR frame_addr, func_start; \ - struct aix_framedata fdata; \ + struct rs6000_framedata fdata; \ \ /* find the start of the function and collect info about its frame. */\ \ diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 89c3ddd..c3a123c 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -55,7 +55,7 @@ branch_dest PARAMS ((int opcode, int instr, CORE_ADDR pc, CORE_ADDR safety)); static void frame_get_cache_fsr PARAMS ((struct frame_info *fi, - struct aix_framedata *fdatap)); + struct rs6000_framedata *fdatap)); /* * Calculate the destination of a branch/jump. Return -1 if not a branch. @@ -476,7 +476,7 @@ void pop_frame () { CORE_ADDR pc, lr, sp, prev_sp; /* %pc, %lr, %sp */ - struct aix_framedata fdata; + struct rs6000_framedata fdata; struct frame_info *frame = get_current_frame (); int addr, ii; @@ -570,7 +570,7 @@ fix_call_dummy(dummyname, pc, fun, nargs, type) /* return information about a function frame. - in struct aix_frameinfo fdata: + in struct rs6000_frameinfo fdata: - frameless is TRUE, if function does not have a frame. - nosavedpc is TRUE, if function does not save %pc value in its frame. - offset is the number of bytes used in the frame to save registers. @@ -582,7 +582,7 @@ fix_call_dummy(dummyname, pc, fun, nargs, type) void function_frame_info (pc, fdata) CORE_ADDR pc; - struct aix_framedata *fdata; + struct rs6000_framedata *fdata; { unsigned int tmp; register unsigned int op; @@ -975,7 +975,7 @@ struct frame_info *fi; int pcsaved; { CORE_ADDR func_start; - struct aix_framedata fdata; + struct rs6000_framedata fdata; if (fi->next != NULL) /* Don't even think about framelessness except on the innermost frame. */ @@ -997,17 +997,17 @@ int pcsaved; /* If saved registers of frame FI are not known yet, read and cache them. - &FDATAP contains aix_framedata; TDATAP can be NULL, + &FDATAP contains rs6000_framedata; TDATAP can be NULL, in which case the framedata are read. */ static void frame_get_cache_fsr (fi, fdatap) struct frame_info *fi; - struct aix_framedata *fdatap; + struct rs6000_framedata *fdatap; { int ii; CORE_ADDR frame_addr; - struct aix_framedata work_fdata; + struct rs6000_framedata work_fdata; if (fi->cache_fsr) return; @@ -1054,7 +1054,7 @@ frame_initial_stack_address (fi) struct frame_info *fi; { CORE_ADDR tmpaddr; - struct aix_framedata fdata; + struct rs6000_framedata fdata; struct frame_info *callee_fi; /* if the initial stack pointer (frame address) of this frame is known, |