diff options
author | bde <bde@FreeBSD.org> | 1998-02-13 02:19:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-02-13 02:19:29 +0000 |
commit | e159c8ff9735b3dbd503e2695d5b6f040140ce03 (patch) | |
tree | e6d877a03bcdb603b973e9b9ce816f4db67c40b7 /sys/ddb/db_watch.c | |
parent | 9461b07207276f197a45e7ed0bc94bda8106f779 (diff) | |
download | FreeBSD-src-e159c8ff9735b3dbd503e2695d5b6f040140ce03.zip FreeBSD-src-e159c8ff9735b3dbd503e2695d5b6f040140ce03.tar.gz |
Ensure that the linker sets for commands exist by putting a standard
command in each of them. This removes the need for hard-to-configure
dummy instantiations of the sets.
Diffstat (limited to 'sys/ddb/db_watch.c')
-rw-r--r-- | sys/ddb/db_watch.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c index c0f951e..1fa3c34 100644 --- a/sys/ddb/db_watch.c +++ b/sys/ddb/db_watch.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_watch.c,v 1.14 1997/02/22 09:28:33 peter Exp $ + * $Id: db_watch.c,v 1.15 1997/06/14 11:52:37 bde Exp $ */ /* @@ -32,6 +32,7 @@ */ #include <sys/param.h> +#include <sys/kernel.h> #include <vm/vm.h> #include <sys/lock.h> @@ -212,13 +213,11 @@ db_watchpoint_cmd(addr, have_addr, count, modif) db_set_watchpoint(db_map_addr(addr), addr, size); } -/* list watchpoints */ -void -db_listwatch_cmd(dummy1, dummy2, dummy3, dummy4) - db_expr_t dummy1; - boolean_t dummy2; - db_expr_t dummy3; - char * dummy4; +/* + * At least one non-optional show-command must be implemented using + * DB_SHOW_COMMAND() so that db_show_cmd_set gets created. Here is one. + */ +DB_SHOW_COMMAND(watches, db_listwatch_cmd) { db_list_watchpoints(); } |