summaryrefslogtreecommitdiff
path: root/gdb/bsd-kvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/bsd-kvm.c')
-rw-r--r--gdb/bsd-kvm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c
index a60204332a6..864be4f4517 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);
}