aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-06-14 21:15:19 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-06-14 21:15:19 +0000
commit1c5a993ebd24fea373b637014e452ff8a0a7a949 (patch)
treecbc5abd61e27bb70ece097a5c54005212c8bfe18 /gdb
parent0b1554650e1587cf47a4a41bda2cc16af0cde14e (diff)
downloadgdb-1c5a993ebd24fea373b637014e452ff8a0a7a949.zip
gdb-1c5a993ebd24fea373b637014e452ff8a0a7a949.tar.gz
gdb-1c5a993ebd24fea373b637014e452ff8a0a7a949.tar.bz2
PR backtrace/13866
* infrun.c (handle_inferior_event): Re-fetch frame and gdbarch after hiding inline functions.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/infrun.c9
2 files changed, 14 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a69ce38..006123b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
+
+ PR backtrace/13866
+ * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
+ after hiding inline functions.
+
2012-06-13 Joel Brobecker <brobecker@adacore.com>
* inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
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