summaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-19 22:24:50 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-19 22:24:50 +0000
commitf03bc11238855acd8edbfe3426506d7a30d68432 (patch)
treeff022009f1de31e11c4a6cef2be67e743b67439f /gdb/d10v-tdep.c
parent6abbc1ef4990f9af031bae80cc481287581bdc43 (diff)
downloadgdb-f03bc11238855acd8edbfe3426506d7a30d68432.tar.gz
2003-01-19 Andrew Cagney <ac131313@redhat.com>
* d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore code handling dummy frames.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index 63efe4c1540..b00cd9d0689 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -521,7 +521,12 @@ d10v_extract_struct_value_address (struct regcache *regcache)
static CORE_ADDR
d10v_frame_saved_pc (struct frame_info *frame)
{
- return (get_frame_extra_info (frame)->return_pc);
+ if (DEPRECATED_PC_IN_CALL_DUMMY (frame->pc, 0, 0))
+ return d10v_make_iaddr (deprecated_read_register_dummy (frame->pc,
+ frame->frame,
+ PC_REGNUM));
+ else
+ return ((frame)->extra_info->return_pc);
}
/* Immediately after a function call, return the saved pc. We can't
@@ -692,8 +697,10 @@ d10v_frame_chain (struct frame_info *fi)
CORE_ADDR addr;
/* A generic call dummy's frame is the same as caller's. */
- d10v_frame_init_saved_regs (fi);
+ if (DEPRECATED_PC_IN_CALL_DUMMY (fi->pc, 0, 0))
+ return fi->frame;
+ d10v_frame_init_saved_regs (fi);
if (get_frame_extra_info (fi)->return_pc == IMEM_START
|| inside_entry_file (get_frame_extra_info (fi)->return_pc))