aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/h8500
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-07-02 21:27:09 +0000
committerSteve Chamberlain <sac@cygnus>1993-07-02 21:27:09 +0000
commit7e721ed49d3ec5f337ed9a9b530fc6ce85048995 (patch)
treeb636dbc82f46bb956e385eaa31b02d4ffb5319cf /gdb/config/h8500
parenta0ab5f90d1d836267eafa80ddbda8969997c0531 (diff)
downloadgdb-7e721ed49d3ec5f337ed9a9b530fc6ce85048995.zip
gdb-7e721ed49d3ec5f337ed9a9b530fc6ce85048995.tar.gz
gdb-7e721ed49d3ec5f337ed9a9b530fc6ce85048995.tar.bz2
* config/h8500/tm-h8500.h: Define new macros.
Diffstat (limited to 'gdb/config/h8500')
-rw-r--r--gdb/config/h8500/tm-h8500.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/gdb/config/h8500/tm-h8500.h b/gdb/config/h8500/tm-h8500.h
index f862d35..c15df3f 100644
--- a/gdb/config/h8500/tm-h8500.h
+++ b/gdb/config/h8500/tm-h8500.h
@@ -88,7 +88,6 @@ extern CORE_ADDR h8500_skip_prologue ();
/* Index within `registers' of the first byte of the space for
register N. */
-int regoff[];
#define REGISTER_BYTE(N) (regoff[N])
/* Number of bytes of storage in the actual machine representation
@@ -300,3 +299,25 @@ struct value * h8500_value_of_trapped_internalvar (/* struct internalvar *var */
void h8500_set_trapped_internalvar (/* struct internalvar *var, value newval, int bitpos, int bitsize, int offset */);
#define SET_TRAPPED_INTERNALVAR h8500_set_trapped_internalvar
+
+
+
+int regoff[NUM_REGS];
+
+CORE_ADDR target_read_sp();
+void target_write_sp PARAMS ((CORE_ADDR ));
+
+CORE_ADDR target_read_fp();
+void target_write_fp PARAMS ((CORE_ADDR ));
+
+CORE_ADDR target_read_pc();
+void target_write_pc PARAMS ((CORE_ADDR ));
+
+
+#define TARGET_READ_SP() target_read_sp()
+#define TARGET_WRITE_SP(x) target_write_sp(x)
+#define TARGET_READ_PC() target_read_pc()
+#define TARGET_WRITE_PC(x) target_write_pc(x)
+
+#define TARGET_READ_FP() target_read_fp()
+#define TARGET_WRITE_FP(x) target_write_fp(x)