summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-05-09 10:51:13 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-05-09 10:51:13 +0000
commit3000820ae09f36959dde1b82ad8de2841bc9717b (patch)
tree0d45886b4ed600f15891f68d2b1c7fd88bfbb362 /sys/ddb/db_command.c
parent3f745407252af5cff7320a0aa706ccbf98b52ea8 (diff)
Notes
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index f86ad2f923b4..6e0e9325d9b2 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_command.c,v 1.29 1999/01/14 06:22:01 jdp Exp $
+ * $Id: db_command.c,v 1.30 1999/05/07 23:08:23 mckusick Exp $
*/
/*
@@ -39,6 +39,8 @@
#include <sys/reboot.h>
#include <sys/systm.h>
+#include <machine/cons.h>
+
#include <ddb/ddb.h>
#include <ddb/db_command.h>
#include <ddb/db_lex.h>
@@ -535,7 +537,9 @@ db_fncall(dummy1, dummy2, dummy3, dummy4)
/* Enter GDB remote protocol debugger on the next trap. */
-dev_t gdbdev;
+dev_t gdbdev = NODEV;
+cn_getc_t *gdb_getc;
+cn_putc_t *gdb_putc;
static void
db_gdb (dummy1, dummy2, dummy3, dummy4)
@@ -545,7 +549,7 @@ db_gdb (dummy1, dummy2, dummy3, dummy4)
char * dummy4;
{
- if (gdbdev == -1) {
+ if (gdbdev == NODEV) {
db_printf("No gdb port enabled. Set flag 0x80 on desired port\n");
db_printf("in your configuration file (currently sio only).\n");
return;