summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.h
diff options
context:
space:
mode:
authorpk <pk@NetBSD.org>1994-03-23 20:00:56 +0000
committerpk <pk@NetBSD.org>1994-03-23 20:00:56 +0000
commit4ccdc884fc3bb66973c01acf007a5662d3df4003 (patch)
tree14936ae2524a071d90a757029b61377ab4dc2338 /sys/ddb/db_command.h
parent974484d46965126e20b25d4c1642a6dc7f793af2 (diff)
struct command => struct db_command, and define it in db_command.h
Diffstat (limited to 'sys/ddb/db_command.h')
-rw-r--r--sys/ddb/db_command.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/ddb/db_command.h b/sys/ddb/db_command.h
index 77c2ab16855..e11a3dab9a6 100644
--- a/sys/ddb/db_command.h
+++ b/sys/ddb/db_command.h
@@ -25,7 +25,7 @@
*
* Author: David B. Golub, Carnegie Mellon University
* Date: 7/90
- * $Id: db_command.h,v 1.3 1994/02/15 14:50:43 mycroft Exp $
+ * $Id: db_command.h,v 1.4 1994/03/23 20:00:57 pk Exp $
*/
/*
@@ -47,4 +47,16 @@ extern db_addr_t db_prev; /* last address examined
extern db_addr_t db_next; /* next address to be examined
or written */
-
+/*
+ * Command table
+ */
+struct db_command {
+ char *name; /* command name */
+ void (*fcn)(); /* function to call */
+ int flag; /* extra info: */
+#define CS_OWN 0x1 /* non-standard syntax */
+#define CS_MORE 0x2 /* standard syntax, but may have other
+ words at end */
+#define CS_SET_DOT 0x100 /* set dot after command */
+ struct db_command *more; /* another level of command */
+};