diff options
Diffstat (limited to 'gdb/remote-mon.c')
-rw-r--r-- | gdb/remote-mon.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/remote-mon.c b/gdb/remote-mon.c index be6034a..0cb5dd7 100644 --- a/gdb/remote-mon.c +++ b/gdb/remote-mon.c @@ -435,7 +435,8 @@ monitor_detach (from_tty) */ static void monitor_resume (pid, step, sig) - int pid, step, sig; + int pid, step; + enum target_signal sig; { #ifdef LOG_FILE fprintf (log_file, "\nIn Resume (step=%d, sig=%d)\n", step, sig); @@ -463,20 +464,22 @@ monitor_resume (pid, step, sig) static int monitor_wait (pid, status) int pid; - WAITTYPE *status; + struct target_waitstatus *status; { int old_timeout = timeout; #ifdef LOG_FILE fputs ("\nIn wait ()", log_file); #endif - WSETEXIT ((*status), 0); + status->kind = TARGET_WAITKIND_EXITED; + status->value.integer = 0; timeout = 0; /* Don't time out -- user program is running. */ expect_prompt(0); /* Wait for prompt, outputting extraneous text */ - WSETSTOP ((*status), SIGTRAP); + status->kind = TARGET_WAITKIND_STOPPED; + status->value.sig = TARGET_SIGNAL_TRAP; timeout = old_timeout; |