aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-st.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-st.c')
-rw-r--r--gdb/remote-st.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/remote-st.c b/gdb/remote-st.c
index 582ab2f..7ea3d15 100644
--- a/gdb/remote-st.c
+++ b/gdb/remote-st.c
@@ -355,7 +355,8 @@ st2000_detach (from_tty)
static void
st2000_resume (pid, step, sig)
- int pid, step, sig;
+ int pid, step;
+ enum target_signal sig;
{
if (step)
{
@@ -376,17 +377,19 @@ st2000_resume (pid, step, sig)
static int
st2000_wait (status)
- WAITTYPE *status;
+ struct target_waitstatus *status;
{
int old_timeout = timeout;
- 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;