diff options
Diffstat (limited to 'gdb/target/target.h')
-rw-r--r-- | gdb/target/target.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/target/target.h b/gdb/target/target.h index 64ef782..972bcb7 100644 --- a/gdb/target/target.h +++ b/gdb/target/target.h @@ -74,4 +74,16 @@ extern void target_continue_no_signal (ptid_t ptid); extern void target_continue (ptid_t ptid, enum gdb_signal signal); +/* Wait for process pid to do something. PTID = -1 to wait for any + pid to do something. Return pid of child, or -1 in case of error; + store status through argument pointer STATUS. Note that it is + _NOT_ OK to throw_exception() out of target_wait() without popping + the debugging target from the stack; GDB isn't prepared to get back + to the prompt with a debugging target but without the frame cache, + stop_pc, etc., set up. OPTIONS is a bitwise OR of TARGET_W* + options. */ + +extern ptid_t target_wait (ptid_t ptid, struct target_waitstatus *status, + int options); + #endif /* TARGET_COMMON_H */ |