aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1996-09-23 23:20:05 +0000
committerMartin Hunt <hunt@redhat.com>1996-09-23 23:20:05 +0000
commit8626a9d58a8b7f73eadd7e6921aee8212a58e32e (patch)
treea50eaaa2e5ab58a4b5c579460a224e2a69e50f54 /gdb
parentb70b03b0e81eee2b02ebb34b043406627cfd9a55 (diff)
downloadgdb-8626a9d58a8b7f73eadd7e6921aee8212a58e32e.zip
gdb-8626a9d58a8b7f73eadd7e6921aee8212a58e32e.tar.gz
gdb-8626a9d58a8b7f73eadd7e6921aee8212a58e32e.tar.bz2
Mon Sep 23 16:13:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed. Now single-steps correctly.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/config/d10v/tm-d10v.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/config/d10v/tm-d10v.h b/gdb/config/d10v/tm-d10v.h
index 327adee..959c5a5 100644
--- a/gdb/config/d10v/tm-d10v.h
+++ b/gdb/config/d10v/tm-d10v.h
@@ -48,8 +48,7 @@ extern CORE_ADDR d10v_skip_prologue ();
The return address is the value saved in the PR register + 4 */
-#define SAVED_PC_AFTER_CALL(frame) \
- (ADDR_BITS_REMOVE(read_register(PR_REGNUM)))
+#define SAVED_PC_AFTER_CALL(frame) (read_register(LR_REGNUM) << 2 )
/* Stack grows downward. */
@@ -84,7 +83,6 @@ extern CORE_ADDR d10v_skip_prologue ();
#define SP_REGNUM 15
#define FP_REGNUM 11
#define PC_REGNUM 18
-#define PR_REGNUM 17
#define PSW_REGNUM 16
#define A0_REGNUM 32