diff options
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 89f9362..81d1e5c 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -5520,6 +5520,10 @@ insert_exception_resume_breakpoint (struct thread_info *tp, bp = set_momentary_breakpoint_at_pc (get_frame_arch (frame), handler, bp_exception_resume); + + /* set_momentary_breakpoint_at_pc invalidates FRAME. */ + frame = NULL; + bp->thread = tp->num; inferior_thread ()->control.exception_resume_breakpoint = bp; } |