aboutsummaryrefslogtreecommitdiff
path: root/gdb/observable.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-04-13 16:18:34 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-09-15 16:16:26 -0400
commitc6ae604573f9e9d7b7a15388bdba2d1dabecd131 (patch)
tree1a24a4f98fb7f3bbfb7da1dd079876b3b87046d6 /gdb/observable.h
parent0e0edacca5f34621f85e93a22ee31c6810b5941c (diff)
downloadfsf-binutils-gdb-c6ae604573f9e9d7b7a15388bdba2d1dabecd131.zip
fsf-binutils-gdb-c6ae604573f9e9d7b7a15388bdba2d1dabecd131.tar.gz
fsf-binutils-gdb-c6ae604573f9e9d7b7a15388bdba2d1dabecd131.tar.bz2
gdb: add inferior_cloned observable
The following patch makes the amdgpu port transfer a property from the original inferior to the new inferior when using the clone-inferior command. Add the inferior_cloned observable to help with this. Change-Id: Id845a799813ec49b1b7b2fcb97b07d0a1e5e2631 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/observable.h')
-rw-r--r--gdb/observable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/observable.h b/gdb/observable.h
index c0bafc5..4ea203c 100644
--- a/gdb/observable.h
+++ b/gdb/observable.h
@@ -172,6 +172,10 @@ extern observable<struct inferior */* inf */> inferior_exit;
This method is called immediately before freeing INF. */
extern observable<struct inferior */* inf */> inferior_removed;
+/* The inferior CLONE has been created by cloning INF. */
+extern observable<struct inferior */* inf */, struct inferior */* clone */>
+ inferior_cloned;
+
/* Bytes from DATA to DATA + LEN have been written to the inferior
at ADDR. */
extern observable<struct inferior */* inferior */, CORE_ADDR /* addr */,