diff options
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index d40ba3e..a260620 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -4074,7 +4074,14 @@ handle_inferior_event (struct execution_control_state *ecs) && pc_at_non_inline_function (aspace, ecs->event_thread->prev_pc, &ecs->ws))) - skip_inline_frames (ecs->ptid); + { + skip_inline_frames (ecs->ptid); + + /* Re-fetch current thread's frame in case that invalidated + the frame cache. */ + frame = get_current_frame (); + gdbarch = get_frame_arch (frame); + } } if (ecs->event_thread->suspend.stop_signal == GDB_SIGNAL_TRAP |