gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / gdbserver / server.cc
index 50465c39c2aa025845b99ced3124913cec42d471..6c299898c840f321529bb7296989bd7e83fe116e 100644 (file)
@@ -1690,7 +1690,10 @@ handle_qxfer_threads_worker (thread_info *thread, struct buffer *buffer)
      know about this process, and must not know about it until it gets the
      corresponding (v)fork event.  Exclude this thread from the list.  */
   if (thread->fork_parent != nullptr)
+    {
+      debug_printf("Hiding thread %s\n", thread->id.to_string().c_str());
     return;
+    }
 
   write_ptid (ptid_s, ptid);
 
This page took 0.028562 seconds and 4 git commands to generate.