aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-02-29 14:52:44 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-02-29 14:52:44 +0000
commitc70a6932bbfed97f2ab40953daee470b42b81543 (patch)
treef1b6158934bf4ba77f30d4534788336ec0e7094a /gdb/infcmd.c
parentc03e6ccce295e35596e428f926e4422b06363b96 (diff)
downloadgdb-c70a6932bbfed97f2ab40953daee470b42b81543.zip
gdb-c70a6932bbfed97f2ab40953daee470b42b81543.tar.gz
gdb-c70a6932bbfed97f2ab40953daee470b42b81543.tar.bz2
gdb/
* arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME. * breakpoint.c (until_break_command): Likewise. * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise. * infcall.c (call_function_by_hand): Likewise. * infcmd.c (finish_forward): Likewise. * infrun.c (insert_exception_resume_breakpoint): Likewise.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 8dfa4fd..06def78 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1652,6 +1652,9 @@ finish_forward (struct symbol *function, struct frame_info *frame)
get_stack_frame_id (frame),
bp_finish);
+ /* set_momentary_breakpoint invalidates FRAME. */
+ frame = NULL;
+
old_chain = make_cleanup_delete_breakpoint (breakpoint);
set_longjmp_breakpoint (tp, frame_id);