* exec.c (xfer_memory): Add attrib argument.
[deliverable/binutils-gdb.git] / gdb / procfs.c
index 10f2eb94ae126bb67b868e7e1030d722622be60f..de863c01e1a821f8c9b3fd26001a20fc45b55fed 100644 (file)
@@ -4793,8 +4793,12 @@ procfs_stopped_by_watchpoint (int pid)
 {
   procinfo *pi;
 
-  pi = find_procinfo_or_die (pid == -1 ? 
-                            PIDGET (inferior_pid) : PIDGET (pid), 0);
+  pi = find_procinfo (pid == -1 ? 
+                     PIDGET (inferior_pid) : PIDGET (pid), 0);
+
+  if (!pi)     /* If no process, then not stopped by watchpoint!  */
+    return 0;
+
   if (proc_flags (pi) & (PR_STOPPED | PR_ISTOP))
     {
       if (proc_why (pi) == PR_FAULTED)
This page took 0.023294 seconds and 4 git commands to generate.