diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 2002-02-27 17:37:06 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 2002-02-27 17:37:06 +0000 |
commit | d38e7e5fc0033ccf4c07ad762a5f02e37cab1ee1 (patch) | |
tree | 9eb93e5f39a80785b6ec23438414c7aa5fb1d52b | |
parent | af6c2691ece1dad6623f085d90e5c938ecd164ab (diff) |
don't execute the pmap_update() call if we have no watch list. bo-bo art :-)
-rw-r--r-- | sys/ddb/db_watch.c | 4 |
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) |