diff options
author | Pedro Alves <palves@redhat.com> | 2009-01-24 19:17:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-01-24 19:17:24 +0000 |
commit | 0516318b5d7203ff02f09e0d51ca567c5fba7ece (patch) | |
tree | 5f12d2ff6597e565778d55213af34e6ae6df74a6 /gdb/frame.c | |
parent | 9d5f04acb03c2e6591949f1748d0ce52c6eca580 (diff) | |
download | gdb-0516318b5d7203ff02f09e0d51ca567c5fba7ece.zip gdb-0516318b5d7203ff02f09e0d51ca567c5fba7ece.tar.gz gdb-0516318b5d7203ff02f09e0d51ca567c5fba7ece.tar.bz2 |
* infrun.c (normal_stop): Don't call
deprecated_update_frame_pc_hack.
* frame.c (deprecated_update_frame_pc_hack)
(deprecated_update_frame_base_hack): Delete, and ...
(create_new_frame): ... inline here.
* frame.h (deprecated_update_frame_pc_hack)
(deprecated_update_frame_base_hack): Delete declarations.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 40 |
1 files changed, 6 insertions, 34 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index f138133..7afb70f 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1111,8 +1111,12 @@ create_new_frame (CORE_ADDR addr, CORE_ADDR pc) fi->unwind = frame_unwind_find_by_frame (fi, &fi->prologue_cache); fi->this_id.p = 1; - deprecated_update_frame_base_hack (fi, addr); - deprecated_update_frame_pc_hack (fi, pc); + fi->this_id.value.stack_addr = addr; + /* While we're at it, update this frame's cached PC value, found + in the next frame. Oh for the day when "struct frame_info" + is opaque and this hack on hack can just go away. */ + fi->next->prev_pc.value = pc; + fi->next->prev_pc.p = 1; if (frame_debug) { @@ -1730,38 +1734,6 @@ get_frame_type (struct frame_info *frame) return frame->unwind->type; } -void -deprecated_update_frame_pc_hack (struct frame_info *frame, CORE_ADDR pc) -{ - if (frame_debug) - fprintf_unfiltered (gdb_stdlog, - "{ deprecated_update_frame_pc_hack (frame=%d,pc=0x%s) }\n", - frame->level, paddr_nz (pc)); - /* NOTE: cagney/2003-03-11: Some architectures (e.g., Arm) are - maintaining a locally allocated frame object. Since such frames - are not in the frame chain, it isn't possible to assume that the - frame has a next. Sigh. */ - if (frame->next != NULL) - { - /* While we're at it, update this frame's cached PC value, found - in the next frame. Oh for the day when "struct frame_info" - is opaque and this hack on hack can just go away. */ - frame->next->prev_pc.value = pc; - frame->next->prev_pc.p = 1; - } -} - -void -deprecated_update_frame_base_hack (struct frame_info *frame, CORE_ADDR base) -{ - if (frame_debug) - fprintf_unfiltered (gdb_stdlog, - "{ deprecated_update_frame_base_hack (frame=%d,base=0x%s) }\n", - frame->level, paddr_nz (base)); - /* See comment in "frame.h". */ - frame->this_id.value.stack_addr = base; -} - /* Memory access methods. */ void |