mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-15 03:48:11 +08:00
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.
This commit is contained in:
@ -1,3 +1,14 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2002-11-29 Andreas Schwab <schwab@suse.de>
|
2002-11-29 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
|
* m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
|
||||||
|
@ -254,9 +254,7 @@ ocd_start_remote (PTR dummy)
|
|||||||
flush_cached_frames ();
|
flush_cached_frames ();
|
||||||
registers_changed ();
|
registers_changed ();
|
||||||
stop_pc = read_pc ();
|
stop_pc = read_pc ();
|
||||||
set_current_frame (create_new_frame (read_fp (), stop_pc));
|
print_stack_frame (get_selected_frame (), -1, 1);
|
||||||
select_frame (get_current_frame ());
|
|
||||||
print_stack_frame (deprecated_selected_frame, -1, 1);
|
|
||||||
|
|
||||||
buf[0] = OCD_LOG_FILE;
|
buf[0] = OCD_LOG_FILE;
|
||||||
buf[1] = 3; /* close existing WIGGLERS.LOG */
|
buf[1] = 3; /* close existing WIGGLERS.LOG */
|
||||||
|
@ -629,9 +629,7 @@ e7000_start_remote (void *dummy)
|
|||||||
flush_cached_frames ();
|
flush_cached_frames ();
|
||||||
registers_changed ();
|
registers_changed ();
|
||||||
stop_pc = read_pc ();
|
stop_pc = read_pc ();
|
||||||
set_current_frame (create_new_frame (read_fp (), stop_pc));
|
print_stack_frame (get_selected_frame (), -1, 1);
|
||||||
select_frame (get_current_frame ());
|
|
||||||
print_stack_frame (deprecated_selected_frame, -1, 1);
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -1494,8 +1494,10 @@ mips_initialize (void)
|
|||||||
the request itself succeeds or fails. */
|
the request itself succeeds or fails. */
|
||||||
|
|
||||||
mips_request ('r', 0, 0, &err, mips_receive_wait, NULL);
|
mips_request ('r', 0, 0, &err, mips_receive_wait, NULL);
|
||||||
set_current_frame (create_new_frame (read_fp (), read_pc ()));
|
/* FIXME: cagney/2002-11-29: Force the update of selected frame.
|
||||||
select_frame (get_current_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. */
|
/* 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)
|
if (ptype)
|
||||||
mips_set_processor_type_command (xstrdup (ptype), 0);
|
mips_set_processor_type_command (xstrdup (ptype), 0);
|
||||||
|
|
||||||
/* This is really the job of start_remote however, that makes an assumption
|
/* This is really the job of start_remote however, that makes an
|
||||||
that the target is about to print out a status message of some sort. That
|
assumption that the target is about to print out a status message
|
||||||
doesn't happen here (in fact, it may not be possible to get the monitor to
|
of some sort. That doesn't happen here (in fact, it may not be
|
||||||
send the appropriate packet). */
|
possible to get the monitor to send the appropriate packet). */
|
||||||
|
|
||||||
flush_cached_frames ();
|
flush_cached_frames ();
|
||||||
registers_changed ();
|
registers_changed ();
|
||||||
stop_pc = read_pc ();
|
stop_pc = read_pc ();
|
||||||
set_current_frame (create_new_frame (read_fp (), stop_pc));
|
print_stack_frame (get_selected_frame (), -1, 1);
|
||||||
select_frame (get_current_frame ());
|
|
||||||
print_stack_frame (deprecated_selected_frame, -1, 1);
|
|
||||||
xfree (serial_port_name);
|
xfree (serial_port_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1163,9 +1163,7 @@ remote_rdp_open (char *args, int from_tty)
|
|||||||
flush_cached_frames ();
|
flush_cached_frames ();
|
||||||
registers_changed ();
|
registers_changed ();
|
||||||
stop_pc = read_pc ();
|
stop_pc = read_pc ();
|
||||||
set_current_frame (create_new_frame (read_fp (), stop_pc));
|
print_stack_frame (get_selected_frame (), -1, 1);
|
||||||
select_frame (get_current_frame ());
|
|
||||||
print_stack_frame (deprecated_selected_frame, -1, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user