aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcall.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/infcall.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/infcall.c')
-rw-r--r--gdb/infcall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 9af56ba..6c250e3 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -783,6 +783,10 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
PUSH_DUMMY_CALL, saved as the dummy-frame TOS, and used by
dummy_id to form the frame ID's stack address. */
bpt = set_momentary_breakpoint (gdbarch, sal, dummy_id, bp_call_dummy);
+
+ /* set_momentary_breakpoint invalidates FRAME. */
+ frame = NULL;
+
bpt->disposition = disp_del;
}