aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-26 21:49:48 -0700
committerTom Tromey <tom@tromey.com>2022-01-06 08:56:20 -0700
commitbc521517b7058a231a08bf8f3deae7cd41cd62d7 (patch)
treeae7a824e59ff285cd070bc89d41e286f786e55a5 /gdb/target.h
parent10a85f29c74ab562db622cfc4f58997e859c6ed6 (diff)
downloadgdb-bc521517b7058a231a08bf8f3deae7cd41cd62d7.zip
gdb-bc521517b7058a231a08bf8f3deae7cd41cd62d7.tar.gz
gdb-bc521517b7058a231a08bf8f3deae7cd41cd62d7.tar.bz2
Introduce target_announce_attach
This introduces target_announce_attach, by analog with target_announce_detach. Then it converts existing targets to use this, rather than emitting their own output by hand.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h
index c629b9b..1ac7a45 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1448,6 +1448,11 @@ extern bool target_attach_no_wait ();
extern void target_post_attach (int pid);
+/* Display a message indicating we're about to attach to a given
+ process. */
+
+extern void target_announce_attach (int from_tty, int pid);
+
/* Display a message indicating we're about to detach from the current
inferior process. */