aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/sh/tm-sh.h
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/config/sh/tm-sh.h
parent5a356fb84f404a58dbc995e4c52ded873f25e238 (diff)
downloadgdb-2f5e17369c0406c1accb1682deeaa256f1069d36.zip
gdb-2f5e17369c0406c1accb1682deeaa256f1069d36.tar.gz
gdb-2f5e17369c0406c1accb1682deeaa256f1069d36.tar.bz2
Use remote-e7000.c
Diffstat (limited to 'gdb/config/sh/tm-sh.h')
-rw-r--r--gdb/config/sh/tm-sh.h9
1 files changed, 5 insertions, 4 deletions
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();
+