/* 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;