From 35f196d907ec76a78167173efb1cdeedfcac93bf Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 28 Feb 2007 17:35:01 +0000 Subject: * 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. --- gdb/bsd-kvm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gdb/bsd-kvm.c') diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index a602043..864be4f 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -93,8 +93,7 @@ bsd_kvm_open (char *filename, int from_tty) target_fetch_registers (-1); - flush_cached_frames (); - select_frame (get_current_frame ()); + reinit_frame_cache (); print_stack_frame (get_selected_frame (NULL), -1, 1); } @@ -276,8 +275,7 @@ bsd_kvm_proc_cmd (char *arg, int fromtty) target_fetch_registers (-1); - flush_cached_frames (); - select_frame (get_current_frame ()); + reinit_frame_cache (); print_stack_frame (get_selected_frame (NULL), -1, 1); } @@ -297,8 +295,7 @@ bsd_kvm_pcb_cmd (char *arg, int fromtty) target_fetch_registers (-1); - flush_cached_frames (); - select_frame (get_current_frame ()); + reinit_frame_cache (); print_stack_frame (get_selected_frame (NULL), -1, 1); } -- cgit v1.1