aboutsummaryrefslogtreecommitdiff
path: root/gdb/ocd.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-29 19:40:30 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-29 19:40:30 +0000
commita193e397182a7cc94fcddc49a8dbbf9457d85793 (patch)
treefcb1165c6d700885d7f7146160c9f759832a51ff /gdb/ocd.c
parentb5fc49aa64fc6d0e0da4421ee18ff1ee254a3f71 (diff)
downloadgdb-a193e397182a7cc94fcddc49a8dbbf9457d85793.zip
gdb-a193e397182a7cc94fcddc49a8dbbf9457d85793.tar.gz
gdb-a193e397182a7cc94fcddc49a8dbbf9457d85793.tar.bz2
2002-11-29 Andrew Cagney <cagney@redhat.com>
* remote-mips.c (mips_initialize): Force a selected frame rebuild by calling get_selected_frame. * ocd.c (ocd_start_remote): Use get_selected frame instead of set_current_frame, create_new_frame, select_frame and get_current_frame. * remote-e7000.c (e7000_start_remote): Ditto. * remote-mips.c (common_open): Ditto * remote-rdp.c (remote_rdp_open): Ditto.
Diffstat (limited to 'gdb/ocd.c')
-rw-r--r--gdb/ocd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/ocd.c b/gdb/ocd.c
index d793580..e735fe0 100644
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -254,9 +254,7 @@ ocd_start_remote (PTR dummy)
flush_cached_frames ();
registers_changed ();
stop_pc = read_pc ();
- set_current_frame (create_new_frame (read_fp (), stop_pc));
- select_frame (get_current_frame ());
- print_stack_frame (deprecated_selected_frame, -1, 1);
+ print_stack_frame (get_selected_frame (), -1, 1);
buf[0] = OCD_LOG_FILE;
buf[1] = 3; /* close existing WIGGLERS.LOG */