gdbserver: hide fork child threads from GDB
[deliverable/binutils-gdb.git] / gdbserver / linux-low.cc
index 8bf24031205ae8232820dce6384b295de3cddc51..3c68c57384be38c83ac4c0190eb417aa4ba80d1f 100644 (file)
@@ -7125,6 +7125,17 @@ linux_process_target::thread_handle (ptid_t ptid, gdb_byte **handle,
 }
 #endif
 
+thread_info *
+linux_process_target::thread_pending_parent (thread_info *thread)
+{
+  lwp_info *parent = get_thread_lwp (thread)->pending_parent ();
+
+  if (parent == nullptr)
+    return nullptr;
+
+  return get_lwp_thread (parent);
+}
+
 /* Default implementation of linux_target_ops method "set_pc" for
    32-bit pc register which is literally named "pc".  */
 
This page took 0.026249 seconds and 4 git commands to generate.