summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2002-02-27 17:37:06 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2002-02-27 17:37:06 +0000
commitd38e7e5fc0033ccf4c07ad762a5f02e37cab1ee1 (patch)
tree9eb93e5f39a80785b6ec23438414c7aa5fb1d52b
parentaf6c2691ece1dad6623f085d90e5c938ecd164ab (diff)
don't execute the pmap_update() call if we have no watch list. bo-bo art :-)
-rw-r--r--sys/ddb/db_watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c
index aae83661fac..8f720b24561 100644
--- a/sys/ddb/db_watch.c
+++ b/sys/ddb/db_watch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_watch.c,v 1.7 2001/12/08 02:24:07 art Exp $ */
+/* $OpenBSD: db_watch.c,v 1.8 2002/02/27 17:37:05 pefo Exp $ */
/* $NetBSD: db_watch.c,v 1.9 1996/03/30 22:30:12 christos Exp $ */
/*
@@ -219,7 +219,7 @@ db_set_watchpoints()
{
register db_watchpoint_t watch;
- if (!db_watchpoints_inserted) {
+ if (!db_watchpoints_inserted && db_watchpoint_list != NULL) {
for (watch = db_watchpoint_list;
watch != 0;
watch = watch->link)