]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 16 Jan 2001 17:41:51 +0000 (17:41 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 16 Jan 2001 17:41:51 +0000 (17:41 +0000)
        * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
        goes away -- just return false.

gdb/ChangeLog
gdb/procfs.c

index bdd13203bcfef86852df61db660c64312a0231a8..c570ed1366116183af692a21c196997a89e78814 100644 (file)
@@ -1,5 +1,7 @@
 2001-01-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
 
+       * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
+       goes away -- just return false (ie. not stopped by watchpoint).
        * source.c (openp): Fix typo in comment.
 
 2001-01-12  Nicholas Duffek  <nsd@redhat.com>
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)