From 5d80f8f84b2e36b72f7a133e23179ec3f9bab94d Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 16 Feb 2003 19:22:21 +0000 Subject: Change "dev_t gdbdev" to "void *gdb_arg", some possible paths for GDB will not have a dev_t. --- sys/dev/sio/sio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/sio') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 1ca84d4..7efb668 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -2982,7 +2982,7 @@ siocnprobe(cp) siogdbiobase = iobase; siogdbunit = unit; #if DDB > 0 - gdbdev = makedev(CDEV_MAJOR, unit); + gdb_arg = makedev(CDEV_MAJOR, unit); gdb_getc = siocngetc; gdb_putc = siocnputc; #endif @@ -2996,14 +2996,14 @@ siocnprobe(cp) * If no gdb port has been specified, set it to be the console * as some configuration files don't specify the gdb port. */ - if (gdbdev == NODEV && (boothowto & RB_GDB)) { + if (gdb_arg == NULL && (boothowto & RB_GDB)) { printf("Warning: no GDB port specified. Defaulting to sio%d.\n", siocnunit); printf("Set flag 0x80 on desired GDB port in your\n"); printf("configuration file (currently sio only).\n"); siogdbiobase = siocniobase; siogdbunit = siocnunit; - gdbdev = makedev(CDEV_MAJOR, siocnunit); + gdb_arg = makedev(CDEV_MAJOR, siocnunit); gdb_getc = siocngetc; gdb_putc = siocnputc; } @@ -3090,7 +3090,7 @@ siogdbattach(port, speed) printf("sio%d: gdb debugging port\n", unit); siogdbunit = unit; #if DDB > 0 - gdbdev = makedev(CDEV_MAJOR, unit); + gdb_arg = makedev(CDEV_MAJOR, unit); gdb_getc = siocngetc; gdb_putc = siocnputc; #endif -- cgit v1.1