aboutsummaryrefslogtreecommitdiff
path: root/gdb/target
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-09-11 11:19:56 +0100
committerGary Benson <gbenson@redhat.com>2014-09-11 11:19:56 +0100
commitf8c1d06b82ab0fd56bcffc9030cb44b5a946113e (patch)
tree5150db99cd6c829a8f3cd9d96f24ac57a549fb2a /gdb/target
parent721ec300e1e27c2fa7540ef97f39b6c5ce65083f (diff)
downloadgdb-f8c1d06b82ab0fd56bcffc9030cb44b5a946113e.zip
gdb-f8c1d06b82ab0fd56bcffc9030cb44b5a946113e.tar.gz
gdb-f8c1d06b82ab0fd56bcffc9030cb44b5a946113e.tar.bz2
Introduce target_{stop,continue}_ptid
This commit introduces two new functions to stop and restart target processes that shared code can use and that clients must implement. It also changes some shared code to use these functions. gdb/ChangeLog: * target/target.h (target_stop_ptid, target_continue_ptid): Declare. * target.c (target_stop_ptid, target_continue_ptid): New functions. * common/agent.c [!GDBSERVER]: Don't include infrun.h. (agent_run_command): Always use target_stop_ptid and target_continue_ptid. gdb/gdbserver/ChangeLog: * target.c (target_stop_ptid, target_continue_ptid): New functions.
Diffstat (limited to 'gdb/target')
-rw-r--r--gdb/target/target.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/target/target.h b/gdb/target/target.h
index 0a3c4b7..99a7966 100644
--- a/gdb/target/target.h
+++ b/gdb/target/target.h
@@ -59,4 +59,15 @@ extern int target_read_uint32 (CORE_ADDR memaddr, uint32_t *result);
extern int target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr,
ssize_t len);
+/* Make target stop in a continuable fashion. (For instance, under
+ Unix, this should act like SIGSTOP). This function must be
+ provided by the client. */
+
+extern void target_stop_ptid (ptid_t ptid);
+
+/* Restart a target that was previously stopped by target_stop_ptid.
+ This function must be provided by the client. */
+
+extern void target_continue_ptid (ptid_t ptid);
+
#endif /* TARGET_COMMON_H */