forked from Imagelibrary/binutils-gdb
* remote-sim.h (SIM_ADDR): New type (same as CORE_ADDR).
(sim_set_pc): Update prototype. (sim_read, sim_write): Ditto, and use unsigned char *buf. (sim_fetch_register, sim_store_register): Use unsigned char *buf. (sim_info): Pass printf function as argument, add verbose argument. (sim_stop_reason): Renamed from sim_stop_signal, fix prototype. * remote-sim.c (gdbsim_wait): Update call to sim_stop_reason. (gdbsim_files_info): Update call to sim_info.
This commit is contained in:
@@ -350,10 +350,12 @@ gdbsim_wait (pid, status)
|
||||
WAITTYPE *status;
|
||||
{
|
||||
int sigrc;
|
||||
enum sim_stop reason;
|
||||
|
||||
if (sr_get_debug ())
|
||||
printf_filtered ("gdbsim_wait: ");
|
||||
if (sim_stop_signal (&sigrc) == sim_exited)
|
||||
sim_stop_reason (&reason, &sigrc);
|
||||
if (reason == sim_exited)
|
||||
WSETEXIT (*status, sigrc);
|
||||
else
|
||||
WSETSTOP (*status, sigrc);
|
||||
@@ -422,7 +424,7 @@ gdbsim_files_info (target)
|
||||
{
|
||||
printf_filtered ("\tAttached to %s running program %s\n",
|
||||
target_shortname, file);
|
||||
sim_info ();
|
||||
sim_info (printf_filtered, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user