aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1993-10-26 16:34:01 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1993-10-26 16:34:01 +0000
commitc7efaa16dc66169aea23dd5a52d38d815f072b2a (patch)
treebffdc4d966aa7215dec7a8d625d466504447b20a /gdb/remote-sim.c
parent79971d11cc7a1331d433f7cc9eb0495d07a53078 (diff)
downloadgdb-c7efaa16dc66169aea23dd5a52d38d815f072b2a.zip
gdb-c7efaa16dc66169aea23dd5a52d38d815f072b2a.tar.gz
gdb-c7efaa16dc66169aea23dd5a52d38d815f072b2a.tar.bz2
* 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.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 0c93082..926d139 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -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);
}
}