aboutsummaryrefslogtreecommitdiff
path: root/gdb/observable.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/observable.h')
-rw-r--r--gdb/observable.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/observable.h b/gdb/observable.h
index 00955cb..3066cf6 100644
--- a/gdb/observable.h
+++ b/gdb/observable.h
@@ -21,6 +21,7 @@
#define OBSERVABLE_H
#include "gdbsupport/observable.h"
+#include "target/waitstatus.h"
struct bpstat;
struct so_list;
@@ -97,6 +98,14 @@ extern observable<inferior */* inferior */> inferior_created;
extern observable<inferior */* exec_inf */, inferior */* follow_inf */>
inferior_execd;
+/* The inferior PARENT_INF has forked. If we are setting up an inferior for
+ the child (because we follow only the child or we follow both), CHILD_INF
+ is the child inferior. Otherwise, CHILD_INF is nullptr.
+
+ FORK_KIND is TARGET_WAITKIND_FORKED or TARGET_WAITKIND_VFORKED. */
+extern observable<inferior */* parent_inf */, inferior */* child_inf */,
+ target_waitkind /* fork_kind */> inferior_forked;
+
/* The status of process record for inferior inferior in gdb has
changed. The process record is started if STARTED is true, and
the process record is stopped if STARTED is false.