aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
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);
}
}