summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-16 19:22:21 +0000
committerphk <phk@FreeBSD.org>2003-02-16 19:22:21 +0000
commit5d80f8f84b2e36b72f7a133e23179ec3f9bab94d (patch)
treebb6d5745cede1bbea958f1d7e8b1a7f4cea5438f /sys/ddb
parenta787a2ce231cb430833f2821d998ac1909b00335 (diff)
downloadFreeBSD-src-5d80f8f84b2e36b72f7a133e23179ec3f9bab94d.zip
FreeBSD-src-5d80f8f84b2e36b72f7a133e23179ec3f9bab94d.tar.gz
Change "dev_t gdbdev" to "void *gdb_arg", some possible paths for GDB
will not have a dev_t.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_command.c4
-rw-r--r--sys/ddb/ddb.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index f0aa6d2..ab58bc2 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -550,7 +550,7 @@ db_fncall(dummy1, dummy2, dummy3, dummy4)
/* Enter GDB remote protocol debugger on the next trap. */
-dev_t gdbdev = NODEV;
+void *gdb_arg = NULL;
cn_getc_t *gdb_getc;
cn_putc_t *gdb_putc;
@@ -562,7 +562,7 @@ db_gdb (dummy1, dummy2, dummy3, dummy4)
char * dummy4;
{
- if (gdbdev == NODEV) {
+ if (gdb_arg == NULL) {
db_printf("No gdb port enabled. Set flag 0x80 on desired port\n");
db_printf("in your configuration file (currently sio only).\n");
return;
diff --git a/sys/ddb/ddb.h b/sys/ddb/ddb.h
index 3124c6e..7259e97 100644
--- a/sys/ddb/ddb.h
+++ b/sys/ddb/ddb.h
@@ -161,7 +161,7 @@ struct command {
/*
* Routines to support GDB on an sio port.
*/
-extern dev_t gdbdev;
+extern void *gdb_arg;
extern cn_getc_t *gdb_getc;
extern cn_putc_t *gdb_putc;
#endif
OpenPOWER on IntegriCloud