* procfs.c (procfs_wait): Protect watchpoint code with appropriate

#ifdefs.
	(procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
This commit is contained in:
Jeff Law 1994-04-14 14:16:56 +00:00
parent e6b8a17192
commit 6bc194d2b5
2 changed files with 13 additions and 1 deletions

View File

@ -2,6 +2,7 @@ Thu Apr 14 07:01:56 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* procfs.c (procfs_wait): Protect watchpoint code with appropriate
#ifdefs.
(procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
Wed Apr 13 14:52:46 1994 Jeffrey A. Law (law@snake.cs.utah.edu)

View File

@ -3538,6 +3538,7 @@ procfs_can_run ()
{
return(1);
}
#ifdef TARGET_CAN_USE_HARDWARE_WATCHPOINT
/* Insert a watchpoint */
int
@ -3582,11 +3583,21 @@ procfs_stopped_by_watchpoint(pid)
why = pi->prstatus.pr_why;
what = pi->prstatus.pr_what;
if (why == PR_FAULTED
&& (what == FLTWATCH) || (what == FLTKWATCH))
#if defined (FLTWATCH) && defined (FLTKWATCH)
&& (what == FLTWATCH) || (what == FLTKWATCH)
#else
#ifdef FLTWATCH
&& (what == FLTWATCH)
#endif
#ifdef FLTKWATCH
&& (what == FLTKWATCH)
#endif
)
return what;
}
return 0;
}
#endif
struct target_ops procfs_ops = {