gdbserver: hide fork child threads from GDB
[deliverable/binutils-gdb.git] / gdbserver / gdbthread.h
index fc9b4d204355901bb528008cdc119c5e05dcd35c..e3c66dfc1498f7a73b65d3eeb7fe46f3522ee751 100644 (file)
@@ -82,6 +82,15 @@ struct thread_info
 
   /* Branch trace target information for this thread.  */
   struct btrace_target_info *btrace = nullptr;
+
+  /* A pointer to this thread's fork child or fork parent.  Valid only while
+     the parent fork or vfork event is not reported to GDB.
+
+     Used to avoid wildcard vCont actions resuming a (v)fork child before GDB is
+     notified about the parent's (v)fork event.  Also used to avoid including the
+     (v)fork child in thread list packet responses (e.g. qfThreadInfo).  */
+  thread_info *fork_child = nullptr;
+  thread_info *fork_parent = nullptr;
 };
 
 extern std::list<thread_info *> all_threads;
This page took 0.024094 seconds and 4 git commands to generate.