mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
2003-03-05 Andrew Cagney <cagney@redhat.com>
* frame.c (deprecated_update_frame_pc_hack): Also update the the cached PC value in the next frame.
This commit is contained in:
parent
218e59567e
commit
b257978619
@ -1,3 +1,8 @@
|
||||
2003-03-05 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* frame.c (deprecated_update_frame_pc_hack): Also update the the
|
||||
cached PC value in the next frame.
|
||||
|
||||
2003-03-05 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* frame.h (struct frame_info): Replace "id_unwind_cache_p" and
|
||||
|
@ -1503,8 +1503,13 @@ void
|
||||
deprecated_update_frame_pc_hack (struct frame_info *frame, CORE_ADDR pc)
|
||||
{
|
||||
/* See comment in "frame.h". */
|
||||
gdb_assert (frame->next != NULL);
|
||||
frame->pc = pc;
|
||||
/* 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 go. */
|
||||
gdb_assert (frame->next != NULL);
|
||||
frame->next->pc_unwind_cache = pc;
|
||||
frame->next->pc_unwind_cache_p = 1;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user