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.
This commit is contained in:
parent
e7a8479f5a
commit
aaeb7efa68
2 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
|
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.
|
* source.c (openp): Fix typo in comment.
|
||||||
|
|
||||||
2001-01-12 Nicholas Duffek <nsd@redhat.com>
|
2001-01-12 Nicholas Duffek <nsd@redhat.com>
|
||||||
|
|
|
@ -4793,8 +4793,12 @@ procfs_stopped_by_watchpoint (int pid)
|
||||||
{
|
{
|
||||||
procinfo *pi;
|
procinfo *pi;
|
||||||
|
|
||||||
pi = find_procinfo_or_die (pid == -1 ?
|
pi = find_procinfo (pid == -1 ?
|
||||||
PIDGET (inferior_pid) : PIDGET (pid), 0);
|
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_flags (pi) & (PR_STOPPED | PR_ISTOP))
|
||||||
{
|
{
|
||||||
if (proc_why (pi) == PR_FAULTED)
|
if (proc_why (pi) == PR_FAULTED)
|
||||||
|
|
Loading…
Add table
Reference in a new issue