aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/target.h')
-rw-r--r--gdb/gdbserver/target.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
index 36cc69a..66511c9 100644
--- a/gdb/gdbserver/target.h
+++ b/gdb/gdbserver/target.h
@@ -69,9 +69,14 @@ struct target_ops
void (*kill) (void);
- /* Detach from all inferiors. */
+ /* Detach from all inferiors.
+ Return -1 on failure, and 0 on success. */
- void (*detach) (void);
+ int (*detach) (void);
+
+ /* Wait for inferiors to end. */
+
+ void (*join) (void);
/* Return 1 iff the thread with process ID PID is alive. */
@@ -207,6 +212,9 @@ void set_target_ops (struct target_ops *);
#define store_inferior_registers(regno) \
(*the_target->store_registers) (regno)
+#define join_inferior() \
+ (*the_target->join) ()
+
unsigned char mywait (char *statusp, int connected_wait);
int read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len);