* remote-sim.h (sim_stop): New enum.

(sim_stop_signal): Change prototype, result is enum sim_stop.
* remote-sim.c (gdbsim_wait): Update call to sim_stop_signal.
This commit is contained in:
David Edelsohn
1993-10-23 21:56:47 +00:00
parent dcb389736b
commit 592f517aa3
3 changed files with 21 additions and 5 deletions

View File

@@ -349,9 +349,14 @@ gdbsim_wait (pid, status)
int pid;
WAITTYPE *status;
{
int sigrc;
if (sr_get_debug ())
printf_filtered ("gdbsim_wait: ");
WSETSTOP (*status, sim_stop_signal ());
if (sim_stop_signal (&sigrc) == sim_exited)
WSETEXIT (*status, sigrc);
else
WSETSTOP (*status, sigrc);
if (sr_get_debug ())
printf_filtered ("status %d\n", *status);
return inferior_pid;