aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1993-10-23 21:56:47 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1993-10-23 21:56:47 +0000
commit592f517aa397bea48d2e47cae2c0d29f94dfc7d1 (patch)
treec37a87356fd64316931192cf5f66d18777eebae7 /gdb/remote-sim.c
parentdcb389736b3a54eadeaff8d80e5cdd42f2ec2141 (diff)
downloadgdb-592f517aa397bea48d2e47cae2c0d29f94dfc7d1.zip
gdb-592f517aa397bea48d2e47cae2c0d29f94dfc7d1.tar.gz
gdb-592f517aa397bea48d2e47cae2c0d29f94dfc7d1.tar.bz2
* 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.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index dbecaa0..0c93082 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -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;