From 8626a9d58a8b7f73eadd7e6921aee8212a58e32e Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Mon, 23 Sep 1996 23:20:05 +0000 Subject: [PATCH] Mon Sep 23 16:13:50 1996 Martin M. Hunt * tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed. Now single-steps correctly. --- gdb/config/d10v/tm-d10v.h | 4 +--- 1 file changed, 1 insertion(+), 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 -- 2.7.4