aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-02-28 17:35:01 +0000
committerDaniel Jacobowitz <drow@false.org>2007-02-28 17:35:01 +0000
commit35f196d907ec76a78167173efb1cdeedfcac93bf (patch)
tree53b4f75476a9e3e25e97ae02957e0784fbcba390 /gdb/infrun.c
parent664e3ee9c3e66c691f0c064f93d8e0a52b31609d (diff)
downloadgdb-35f196d907ec76a78167173efb1cdeedfcac93bf.zip
gdb-35f196d907ec76a78167173efb1cdeedfcac93bf.tar.gz
gdb-35f196d907ec76a78167173efb1cdeedfcac93bf.tar.bz2
* frame.c (frame_pop, frame_observer_target_changed): Call
reinit_frame_cache. (flush_cached_frames): Rename to reinit_frame_cache and delete old implementation. * frame.h (flush_cached_frames): Delete prototype and update comment. * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call reinit_frame_cache instead of flush_cached_frames. Do not call select_frame after reinit_frame_cache. * corelow.c (core_open): Likewise. * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise. * infrun.c (prepare_to_proceed, context_switch) (handle_inferior_event): Likewise. * linux-fork.c (fork_load_infrun_state): Likewise. * ocd.c (ocd_start_remote): Likewise. * remote-e7000.c (e7000_start_remote): Likewise. * remote-mips.c (device): Likewise. * thread.c (switch_to_thread): Likewise. * tracepoint.c (finish_tfind_command): Likewise. * gdbarch.c: Regenerated.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 09467db..5d03619 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -686,10 +686,9 @@ prepare_to_proceed (void)
/* FIXME: This stuff came from switch_to_thread() in
thread.c (which should probably be a public function). */
- flush_cached_frames ();
+ reinit_frame_cache ();
registers_changed ();
stop_pc = wait_pc;
- select_frame (get_current_frame ());
}
/* We return 1 to indicate that there is a breakpoint here,
@@ -1157,7 +1156,7 @@ context_switch (struct execution_control_state *ecs)
&ecs->current_line, &ecs->current_symtab);
}
inferior_ptid = ecs->ptid;
- flush_cached_frames ();
+ reinit_frame_cache ();
}
static void
@@ -1304,7 +1303,7 @@ handle_inferior_event (struct execution_control_state *ecs)
}
ecs->infwait_state = infwait_normal_state;
- flush_cached_frames ();
+ reinit_frame_cache ();
/* If it's a new process, add it to the thread database */
@@ -1429,7 +1428,7 @@ handle_inferior_event (struct execution_control_state *ecs)
if (!ptid_equal (ecs->ptid, inferior_ptid))
{
context_switch (ecs);
- flush_cached_frames ();
+ reinit_frame_cache ();
}
stop_pc = read_pc ();
@@ -1490,7 +1489,7 @@ handle_inferior_event (struct execution_control_state *ecs)
if (!ptid_equal (ecs->ptid, inferior_ptid))
{
context_switch (ecs);
- flush_cached_frames ();
+ reinit_frame_cache ();
}
/* If no catchpoint triggered for this, then keep going. */