[Linux] Ask kernel to kill inferior when GDB terminates
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-low.c
index 5ea9200133a4e300db9eb4e1556718a769943aee..65f72a2dda916482a59eb87b8bb830c213d43963 100644 (file)
@@ -1878,7 +1878,9 @@ linux_low_filter_event (ptid_t filter_ptid, int lwpid, int wstat)
 
   if (WIFSTOPPED (wstat) && child->must_set_ptrace_flags)
     {
-      linux_enable_event_reporting (lwpid);
+      struct process_info *proc = find_process_pid (pid_of (thread));
+
+      linux_enable_event_reporting (lwpid, proc->attached);
       child->must_set_ptrace_flags = 0;
     }
 
This page took 0.025603 seconds and 4 git commands to generate.