summaryrefslogtreecommitdiff
path: root/gdb/inline-frame.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-14 21:25:51 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-14 21:25:51 +0000
commitabbb1732a91accadee3e1c00b75fc0a3f418fae7 (patch)
treeebe572bfbd5022d93857d023df66223f8eafd098 /gdb/inline-frame.c
parentd8734c886e14a4840c59ad815f7b9dc81cc9276c (diff)
downloadbinutils-gdb-abbb1732a91accadee3e1c00b75fc0a3f418fae7.tar.gz
2010-05-14 Michael Snyder <msnyder@vmware.com>
* 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.
Diffstat (limited to 'gdb/inline-frame.c')
-rw-r--r--gdb/inline-frame.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/inline-frame.c b/gdb/inline-frame.c
index 6b90a52c1e0..706bcd962ca 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);