aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-11-15 23:29:56 +0000
committerSteve Chamberlain <sac@cygnus>1993-11-15 23:29:56 +0000
commit2f5e17369c0406c1accb1682deeaa256f1069d36 (patch)
treefe194db89e5aaacab99279d8fe8025a51b0baa8c /gdb
parent5a356fb84f404a58dbc995e4c52ded873f25e238 (diff)
downloadgdb-2f5e17369c0406c1accb1682deeaa256f1069d36.zip
gdb-2f5e17369c0406c1accb1682deeaa256f1069d36.tar.gz
gdb-2f5e17369c0406c1accb1682deeaa256f1069d36.tar.bz2
Use remote-e7000.c
Diffstat (limited to 'gdb')
-rw-r--r--gdb/config/sh/sh.mt2
-rw-r--r--gdb/config/sh/tm-sh.h9
2 files changed, 6 insertions, 5 deletions
diff --git a/gdb/config/sh/sh.mt b/gdb/config/sh/sh.mt
index 744df7c..eee9de3 100644
--- a/gdb/config/sh/sh.mt
+++ b/gdb/config/sh/sh.mt
@@ -1,5 +1,5 @@
# Target: Hitachi Super-H ICE and simulator
-TDEPFILES= exec.o sh-tdep.o remote-sim.o interp.o table.o
+TDEPFILES= exec.o sh-tdep.o remote-sim.o interp.o table.o remote-e7000.o
over: all
interp.o:
diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h
index 61ce7c9..cff063b 100644
--- a/gdb/config/sh/tm-sh.h
+++ b/gdb/config/sh/tm-sh.h
@@ -63,7 +63,7 @@ extern CORE_ADDR sh_skip_prologue ();
/* If your kernel resets the pc after the trap happens you may need to
define this before including this file. */
-#define DECR_PC_AFTER_BREAK 0
+#define DECR_PC_AFTER_BREAK 2
/* Nonzero if instruction at PC is a return instruction. */
#define ABOUT_TO_RETURN(pc) (read_memory_integer(pc,2) == 0x000b)
@@ -128,8 +128,8 @@ extern CORE_ADDR sh_skip_prologue ();
#define VBR_REGNUM 19
#define MACH_REGNUM 20
#define MACL_REGNUM 21
-#define CR_REGNUM 22
-
+#define SR_REGNUM 22
+#define NUM_REALREGS 23
/* Store the address of the place in which to copy the structure the
subroutine will return. This is called from call_function.
@@ -208,7 +208,7 @@ extern CORE_ADDR sh_skip_prologue ();
typedef unsigned short INSN_WORD;
-#define ADDR_BITS_REMOVE(addr) ((addr) & 0xffffff)
+#define ADDR_BITS_REMOVE(addr) ((addr))
#define CALL_DUMMY_LENGTH 10
@@ -217,3 +217,4 @@ typedef unsigned short INSN_WORD;
#define POP_FRAME pop_frame();
+