From abbb1732a91accadee3e1c00b75fc0a3f418fae7 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 14 May 2010 21:25:51 +0000 Subject: 2010-05-14 Michael Snyder * infcall.c: White space. * inf-child.c: White space. * infcmd.c: White space. * inferior.c: White space. * inf-loop.c: White space. * inflow.c: White space. * inline-frame.c: White space. * interps.c: White space. --- gdb/inline-frame.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/inline-frame.c') diff --git a/gdb/inline-frame.c b/gdb/inline-frame.c index 6b90a52..706bcd9 100644 --- a/gdb/inline-frame.c +++ b/gdb/inline-frame.c @@ -75,6 +75,7 @@ find_inline_frame_state (ptid_t ptid) { struct regcache *regcache = get_thread_regcache (ptid); CORE_ADDR current_pc = regcache_read_pc (regcache); + if (current_pc != state->saved_pc) { /* PC has changed - this context is invalid. Use the @@ -124,6 +125,7 @@ clear_inline_frame_state (ptid_t ptid) { VEC (inline_state_s) *new_states = NULL; int pid = ptid_get_pid (ptid); + for (ix = 0; VEC_iterate (inline_state_s, inline_states, ix, state); ix++) if (pid != ptid_get_pid (state->ptid)) VEC_safe_push (inline_state_s, new_states, state); -- cgit v1.1