aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-adapt.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-05-04 04:15:33 +0000
committerKevin Buettner <kevinb@redhat.com>2001-05-04 04:15:33 +0000
commit39f770628a4eaf018fec8d55684bf2ec16ada9cc (patch)
tree69027cfb7df2ecc521ab2cc1d25a7dd6cbe56632 /gdb/remote-adapt.c
parentb1af961c8433821f61dd1849cff9eb9a8bb974e8 (diff)
downloadgdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.zip
gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.tar.gz
gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.tar.bz2
Phase 1 of the ptid_t changes.
Diffstat (limited to 'gdb/remote-adapt.c')
-rw-r--r--gdb/remote-adapt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/remote-adapt.c b/gdb/remote-adapt.c
index 10139b4..9d31d52 100644
--- a/gdb/remote-adapt.c
+++ b/gdb/remote-adapt.c
@@ -753,7 +753,7 @@ adapt_detach (char *args, int from_tty)
/* Tell the remote machine to resume. */
void
-adapt_resume (int pid, int step, enum target_signal sig)
+adapt_resume (ptid_t ptid, int step, enum target_signal sig)
{
if (step)
{
@@ -781,8 +781,8 @@ adapt_resume (int pid, int step, enum target_signal sig)
/* Wait until the remote machine stops, then return,
storing status in STATUS just as `wait' would. */
-int
-adapt_wait (struct target_waitstatus *status)
+ptid_t
+adapt_wait (ptid_t ptid, struct target_waitstatus *status)
{
/* Strings to look for. '?' means match any single character.
Note that with the algorithm we use, the initial character
@@ -815,7 +815,7 @@ adapt_wait (struct target_waitstatus *status)
status->kind = TARGET_WAITKIND_STOPPED;
status->value.sig = TARGET_SIGNAL_TRAP;
need_artificial_trap--;
- return 0;
+ return inferior_ptid;
}
timeout = 0; /* Don't time out -- user program is running. */
@@ -871,7 +871,7 @@ adapt_wait (struct target_waitstatus *status)
}
timeout = old_timeout;
immediate_quit = old_immediate_quit;
- return 0;
+ return inferior_ptid;
}
/* Return the name of register number REGNO