From owner-cvs-sys Sat Sep 14 02:13:30 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA26405 for cvs-sys-outgoing; Sat, 14 Sep 1996 02:13:30 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA26390; Sat, 14 Sep 1996 02:13:19 -0700 (PDT) Date: Sat, 14 Sep 1996 02:13:19 -0700 (PDT) From: Bruce Evans Message-Id: <199609140913.CAA26390@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/ddb db_command.c ddb.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/09/14 02:13:18 Modified: sys/ddb db_command.c ddb.h Log: Support statically attaching of ddb commands in non-ddb modules. The details are hidden in the DB_COMMAND(cmd_name, func_name) and DB_SHOW_COMMAND(cmd_name, func_name) macros. DB_COMMAND() adds to the top-level ddb command table and DB_SHOW_COMMAND adds to the `show' subtable. Most external commands will probably be `show' commands with no side effects. They should check their pointer args more carefully than `show map' :-), or ddb should trap internal faults better (like it does for memory accesses). The vm ddb commands are temporarily unattached. ddb.h: Also declare `db_indent' and db_iprintf() which will replace vm's `indent' and iprintf(). Revision Changes Path 1.20 +70 -32 src/sys/ddb/db_command.c 1.12 +41 -9 src/sys/ddb/ddb.h