aboutsummaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-06 21:27:35 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-06 21:27:35 +0000
commit20c6c2f878da4b813fed412aa818292c4b87b338 (patch)
tree9e55e42b75b52e315c236c94ed2c530a65df44e8 /gdb/d10v-tdep.c
parent884a26c8a6e4809ee339ff546812cb35c16cd3a6 (diff)
downloadgdb-20c6c2f878da4b813fed412aa818292c4b87b338.zip
gdb-20c6c2f878da4b813fed412aa818292c4b87b338.tar.gz
gdb-20c6c2f878da4b813fed412aa818292c4b87b338.tar.bz2
2003-06-06 Andrew Cagney <cagney@redhat.com>
* d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc". (d10v_frame_unwind_cache): Do not set "return_pc".
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index 2696c60..4931cb1 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -563,7 +563,6 @@ d10v_skip_prologue (CORE_ADDR pc)
struct d10v_unwind_cache
{
- CORE_ADDR return_pc;
/* The previous frame's inner most stack address. Used as this
frame ID's stack_addr. */
CORE_ADDR prev_sp;
@@ -682,7 +681,6 @@ d10v_frame_unwind_cache (struct frame_info *next_frame,
info->saved_regs = FRAME_OBSTACK_CALLOC (NUM_REGS, CORE_ADDR);
info->size = 0;
- info->return_pc = 0;
info->sp_offset = 0;
info->uses_frame = 0;
@@ -779,20 +777,6 @@ d10v_frame_unwind_cache (struct frame_info *next_frame,
info->saved_regs[i] = (info->prev_sp + info->saved_regs[i]);
}
- if (info->saved_regs[LR_REGNUM])
- {
- CORE_ADDR return_pc
- = get_frame_memory_unsigned (next_frame, info->saved_regs[LR_REGNUM],
- register_size (gdbarch, LR_REGNUM));
- info->return_pc = d10v_make_iaddr (return_pc);
- }
- else
- {
- ULONGEST return_pc;
- frame_unwind_unsigned_register (next_frame, LR_REGNUM, &return_pc);
- info->return_pc = d10v_make_iaddr (return_pc);
- }
-
/* The D10V_SP_REGNUM is special. Instead of the address of the SP, the
previous frame's SP value is saved. */
info->saved_regs[D10V_SP_REGNUM] = info->prev_sp;