Fix race exposed by gdb.threads/killed.exp
[deliverable/binutils-gdb.git] / gdb / nat / linux-procfs.c
index f1493839f60254f1a96d2d3cb2784a38ecce9d41..7599b32ed3eade6072136e8cb99c9ec231802e3e 100644 (file)
@@ -151,6 +151,15 @@ linux_proc_pid_is_stopped (pid_t pid)
   return linux_proc_pid_has_state (pid, "T (stopped)", 1);
 }
 
+/* Detect `T (tracing stop)' in `/proc/PID/status'.
+   Other states including `T (stopped)' are reported as false.  */
+
+int
+linux_proc_pid_is_trace_stopped_nowarn (pid_t pid)
+{
+  return linux_proc_pid_has_state (pid, "T (tracing stop)", 1);
+}
+
 /* Return non-zero if PID is a zombie.  If WARN, warn on failure to
    open the /proc file.  */
 
This page took 0.024734 seconds and 4 git commands to generate.