aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2002-12-23 19:39:59 +0000
committerDavid Carlton <carlton@bactrian.org>2002-12-23 19:39:59 +0000
commita255c93707c1325ab30ea467c92a3c08c51fc1eb (patch)
tree95ec6f713582b2e627409dbe77b6d52dd4e58147 /gdb/remote-mips.c
parentd268a3f5e55a74606bbb15efd9418d9ca0055bc0 (diff)
downloadgdb-a255c93707c1325ab30ea467c92a3c08c51fc1eb.zip
gdb-a255c93707c1325ab30ea467c92a3c08c51fc1eb.tar.gz
gdb-a255c93707c1325ab30ea467c92a3c08c51fc1eb.tar.bz2
2002-12-23 David Carlton <carlton@math.stanford.edu>
* Merge from mainline; tag is carlton_dictionary-20021223-merge.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index abd590b..044746d 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -1494,8 +1494,10 @@ mips_initialize (void)
the request itself succeeds or fails. */
mips_request ('r', 0, 0, &err, mips_receive_wait, NULL);
- set_current_frame (create_new_frame (read_fp (), read_pc ()));
- select_frame (get_current_frame ());
+ /* FIXME: cagney/2002-11-29: Force the update of selected frame.
+ This shouldn't be necessary, only many many places still refer to
+ selected_frame directly (instead of using get_selected_frame(). */
+ get_selected_frame (); /* Hack!!! */
}
/* Open a connection to the remote board. */
@@ -1612,17 +1614,15 @@ device is attached to the target board (e.g., /dev/ttya).\n"
if (ptype)
mips_set_processor_type_command (xstrdup (ptype), 0);
-/* This is really the job of start_remote however, that makes an assumption
- that the target is about to print out a status message of some sort. That
- doesn't happen here (in fact, it may not be possible to get the monitor to
- send the appropriate packet). */
+ /* This is really the job of start_remote however, that makes an
+ assumption that the target is about to print out a status message
+ of some sort. That doesn't happen here (in fact, it may not be
+ possible to get the monitor to send the appropriate packet). */
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 (selected_frame, -1, 1);
+ print_stack_frame (get_selected_frame (), -1, 1);
xfree (serial_port_name);
}