diff options
author | Mark Alexander <marka@cygnus> | 1999-01-20 23:54:03 +0000 |
---|---|---|
committer | Mark Alexander <marka@cygnus> | 1999-01-20 23:54:03 +0000 |
commit | 7363ff9083bcd53b539c1688704d186f7aff53b1 (patch) | |
tree | 0117a160503798317c72a3a2b21e92156cf5ac5c /gdb/config/h8300 | |
parent | caf8b76ba26837676347a906132fcc3217894468 (diff) | |
download | gdb-7363ff9083bcd53b539c1688704d186f7aff53b1.zip gdb-7363ff9083bcd53b539c1688704d186f7aff53b1.tar.gz gdb-7363ff9083bcd53b539c1688704d186f7aff53b1.tar.bz2 |
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.
Diffstat (limited to 'gdb/config/h8300')
-rw-r--r-- | gdb/config/h8300/tm-h8300.h | 5 |
1 files changed, 5 insertions, 0 deletions
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, |