#ifdefs.
(procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
* 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)
{
return(1);
}
+#ifdef TARGET_CAN_USE_HARDWARE_WATCHPOINT
\f
/* Insert a watchpoint */
int
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
\f
struct target_ops procfs_ops = {