summaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2001-01-16 17:41:51 +0000
committerMichael Snyder <msnyder@specifix.com>2001-01-16 17:41:51 +0000
commit1fe41d123d666b5c757c47422a6d9a9088894798 (patch)
tree84904930ca580c02c0d8842d8a97fa2819246e30 /gdb/procfs.c
parentc6d0598f9c233f497e76c8a55821e4a96650c7bd (diff)
downloadgdb-1fe41d123d666b5c757c47422a6d9a9088894798.tar.gz
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.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 10f2eb94ae1..de863c01e1a 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -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)