aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-01-16 17:41:51 +0000
committerMichael Snyder <msnyder@vmware.com>2001-01-16 17:41:51 +0000
commitaaeb7efa68b76ce3d55ee00e7ffa2b85da18465f (patch)
tree6effea91ecd809943992dbf7ec6404981402b64e /gdb/procfs.c
parente7a8479f5a51b084a05d4f32da741fca4ed1bff0 (diff)
downloadgdb-aaeb7efa68b76ce3d55ee00e7ffa2b85da18465f.zip
gdb-aaeb7efa68b76ce3d55ee00e7ffa2b85da18465f.tar.gz
gdb-aaeb7efa68b76ce3d55ee00e7ffa2b85da18465f.tar.bz2
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 10f2eb9..de863c0 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)