From 7363ff9083bcd53b539c1688704d186f7aff53b1 Mon Sep 17 00:00:00 2001 From: Mark Alexander Date: Wed, 20 Jan 1999 23:54:03 +0000 Subject: Changes for PR 8996: * h8300-tdep.c (original_register_names, h8300h_register_names, h8300_register_names): Define new variables. (set_register_names): New function to set register names based on current CPU type. (h8300_command, h8300h_command, h8300s_command): Call set_register_names. * config/h8300/tm-h8300.h (h8300_register_names): Declare. (REGISTER_NAME): Define to refer to h8300_register_names. --- gdb/config/h8300/tm-h8300.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/config/h8300') diff --git a/gdb/config/h8300/tm-h8300.h b/gdb/config/h8300/tm-h8300.h index 34b95cc..b398d2f 100644 --- a/gdb/config/h8300/tm-h8300.h +++ b/gdb/config/h8300/tm-h8300.h @@ -135,6 +135,11 @@ extern CORE_ADDR h8300_skip_prologue (); #define REGISTER_NAMES \ {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "sp", "ccr","pc","cycles","tick","inst"} +/* An array of names of registers. */ + +extern char **h8300_register_names; +#define REGISTER_NAME(i) h8300_register_names[i] + /* Register numbers of various important registers. Note that some of these values are "real" register numbers, and correspond to the general registers of the machine, -- cgit v1.1