From: Martin Hunt Date: Mon, 23 Sep 1996 23:20:05 +0000 (+0000) Subject: Mon Sep 23 16:13:50 1996 Martin M. Hunt X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8626a9d58a8b7f73eadd7e6921aee8212a58e32e;p=binutils-gdb.git Mon Sep 23 16:13:50 1996 Martin M. Hunt * tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed. Now single-steps correctly. --- diff --git a/gdb/config/d10v/tm-d10v.h b/gdb/config/d10v/tm-d10v.h index 327adeeca57..959c5a5b573 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