From 636414911eb9a40e3874490f7a95247787476eea Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Tue, 25 Jul 1995 14:46:12 +0000 Subject: Change aix_framedata -> rs6000_framedata --- gdb/config/rs6000/tm-rs6000.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'gdb/config/rs6000') 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. */\ \ -- cgit v1.1