aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-02-23 08:15:04 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-02-23 08:15:04 +0000
commitdef166f668f6f016d7c6fbab84504e95eb82bfce (patch)
tree9f3bc8d3d050306efb06438a36f8ba1eee122a0e /gdb/infcmd.c
parent4f5c1eb4baa0949fd6de2578ade9df0177caab8b (diff)
downloadgdb-def166f668f6f016d7c6fbab84504e95eb82bfce.zip
gdb-def166f668f6f016d7c6fbab84504e95eb82bfce.tar.gz
gdb-def166f668f6f016d7c6fbab84504e95eb82bfce.tar.bz2
gdb/
PR backtrace/13716 * infcmd.c (finish_forward): New variable frame_id, initialize it, use it after set_momentary_breakpoint.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 7d929df..8dfa4fd 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1636,6 +1636,7 @@ finish_backward (struct symbol *function)
static void
finish_forward (struct symbol *function, struct frame_info *frame)
{
+ struct frame_id frame_id = get_frame_id (frame);
struct gdbarch *gdbarch = get_frame_arch (frame);
struct symtab_and_line sal;
struct thread_info *tp = inferior_thread ();
@@ -1653,7 +1654,7 @@ finish_forward (struct symbol *function, struct frame_info *frame)
old_chain = make_cleanup_delete_breakpoint (breakpoint);
- set_longjmp_breakpoint (tp, get_frame_id (frame));
+ set_longjmp_breakpoint (tp, frame_id);
make_cleanup (delete_longjmp_breakpoint_cleanup, &thread);
/* We want stop_registers, please... */