diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-05-04 04:15:33 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-05-04 04:15:33 +0000 |
commit | 39f770628a4eaf018fec8d55684bf2ec16ada9cc (patch) | |
tree | 69027cfb7df2ecc521ab2cc1d25a7dd6cbe56632 /gdb/remote-array.c | |
parent | * configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: Disable (diff) | |
download | binutils-gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.tar.gz binutils-gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.tar.bz2 binutils-gdb-39f770628a4eaf018fec8d55684bf2ec16ada9cc.zip |
Phase 1 of the ptid_t changes.
Diffstat (limited to 'gdb/remote-array.c')
-rw-r--r-- | gdb/remote-array.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/remote-array.c b/gdb/remote-array.c index 10f9c9045af..35d271d8f49 100644 --- a/gdb/remote-array.c +++ b/gdb/remote-array.c @@ -67,7 +67,7 @@ static void array_open (); static void array_close (); static void array_detach (); static void array_attach (); -static void array_resume (); +static void array_resume (ptid_t ptid, int step, enum target_signal sig); static void array_fetch_register (); static void array_store_register (); static void array_fetch_registers (); @@ -79,7 +79,8 @@ static void array_create_inferior (); static void array_mourn_inferior (); static void make_gdb_packet (); static int array_xfer_memory (); -static int array_wait (); +static ptid_t array_wait (ptid_t ptid, + struct target_waitstatus *status); static int array_insert_breakpoint (); static int array_remove_breakpoint (); static int tohex (); @@ -697,7 +698,7 @@ array_attach (char *args, int from_tty) * array_resume -- Tell the remote machine to resume. */ static void -array_resume (int pid, int step, enum target_signal sig) +array_resume (ptid_t ptid, int step, enum target_signal sig) { debuglogs (1, "array_resume (step=%d, sig=%d)", step, sig); @@ -717,8 +718,8 @@ array_resume (int pid, int step, enum target_signal sig) * array_wait -- Wait until the remote machine stops, then return, * storing status in status just as `wait' would. */ -static int -array_wait (int pid, struct target_waitstatus *status) +static ptid_t +array_wait (ptid_t ptid, struct target_waitstatus *status) { int old_timeout = timeout; int result, i; @@ -784,7 +785,7 @@ array_wait (int pid, struct target_waitstatus *status) timeout = old_timeout; - return 0; + return inferior_ptid; } /* |