diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-12-10 06:10:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-12-10 06:10:03 +0000 |
commit | 9ddf9aa9be045961f83eacd457a959acb32df2fe (patch) | |
tree | 622fbb718c5b6acfb5b6494bfa0eb88b587ac5d3 /gdb/config | |
parent | d734c861b45c6b73dcf4c58bbc4d76fd03c1a2d9 (diff) | |
download | gdb-9ddf9aa9be045961f83eacd457a959acb32df2fe.zip gdb-9ddf9aa9be045961f83eacd457a959acb32df2fe.tar.gz gdb-9ddf9aa9be045961f83eacd457a959acb32df2fe.tar.bz2 |
CARP:
Rename REGISTER_NAMES{} -> REGISTER_NAME().
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/alpha/tm-alpha.h | 4 | ||||
-rw-r--r-- | gdb/config/mips/tm-mips.h | 2 | ||||
-rw-r--r-- | gdb/config/mn10300/tm-mn10300.h | 7 | ||||
-rw-r--r-- | gdb/config/sh/tm-sh.h | 13 |
4 files changed, 7 insertions, 19 deletions
diff --git a/gdb/config/alpha/tm-alpha.h b/gdb/config/alpha/tm-alpha.h index 8aaefb4..fced3f4 100644 --- a/gdb/config/alpha/tm-alpha.h +++ b/gdb/config/alpha/tm-alpha.h @@ -77,7 +77,7 @@ alpha_saved_pc_after_call PARAMS ((struct frame_info *)); /* Stack grows downward. */ -#define INNER_THAN < +#define INNER_THAN(lhs,rhs) ((lhs) < (rhs)) #define BREAKPOINT {0x80, 0, 0, 0} /* call_pal bpt */ @@ -409,7 +409,7 @@ init_extra_frame_info PARAMS ((struct frame_info *)); { \ if (fi && fi->proc_desc && fi->proc_desc->pdr.framereg < NUM_REGS) \ printf_filtered (" frame pointer is at %s+%d\n", \ - reg_names[fi->proc_desc->pdr.framereg], \ + REGISTER_NAME (fi->proc_desc->pdr.framereg), \ fi->proc_desc->pdr.frameoffset); \ } diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 8b80f96..fac4e14 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -465,7 +465,7 @@ extern void init_extra_frame_info PARAMS ((struct frame_info *)); { \ if (fi && fi->proc_desc && fi->proc_desc->pdr.framereg < NUM_REGS) \ printf_filtered (" frame pointer is at %s+%d\n", \ - reg_names[fi->proc_desc->pdr.framereg], \ + REGISTER_NAME (fi->proc_desc->pdr.framereg), \ fi->proc_desc->pdr.frameoffset); \ } diff --git a/gdb/config/mn10300/tm-mn10300.h b/gdb/config/mn10300/tm-mn10300.h index 6108f2a..94582ba 100644 --- a/gdb/config/mn10300/tm-mn10300.h +++ b/gdb/config/mn10300/tm-mn10300.h @@ -37,11 +37,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define REGISTER_BYTES (NUM_REGS * REGISTER_SIZE) -#define REGISTER_NAMES \ -{ "d0", "d1", "d2", "d3", "a0", "a1", "a2", "a3", \ - "sp", "pc", "mdr", "psw", "lir", "lar", "", "", \ - "", "", "", "", "", "", "", "", \ - "", "", "", "", "", "", "", "fp" } +extern char **mn10300_register_names; +#define REGISTER_NAME(i) mn10300_register_names[i] #define D2_REGNUM 2 #define D3_REGNUM 3 diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h index a65461c..22e60a8 100644 --- a/gdb/config/sh/tm-sh.h +++ b/gdb/config/sh/tm-sh.h @@ -111,17 +111,8 @@ extern CORE_ADDR sh_skip_prologue (); /* Initializer for an array of names of registers. Entries beyond the first NUM_REGS are ignored. */ -#define REGISTER_NAMES \ - { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \ - "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", \ - "pc", "pr", "gbr", "vbr", "mach", "macl", "sr", \ - "fpul", "fpscr", \ - "fr0", "fr1", "fr2", "fr3", "fr4", "fr5", "fr6", "fr7", \ - "fr8", "fr9", "fr10", "fr11", "fr12", "fr13", "fr14", "fr15", \ - "ssr", "spc", \ - "r0b0", "r1b0", "r2b0", "r3b0", "r4b0", "r5b0", "r6b0", "r7b0", \ - "r0b1", "r1b1", "r2b1", "r3b1", "r4b1", "r5b1", "r6b1", "r7b1", \ - } +extern char **sh_register_names; +#define REGISTER_NAME(i) sh_register_names[i] #define NUM_REGS 59 |