diff options
author | phk <phk@FreeBSD.org> | 2003-02-16 19:22:21 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-16 19:22:21 +0000 |
commit | 5d80f8f84b2e36b72f7a133e23179ec3f9bab94d (patch) | |
tree | bb6d5745cede1bbea958f1d7e8b1a7f4cea5438f /sys/i386 | |
parent | a787a2ce231cb430833f2821d998ac1909b00335 (diff) | |
download | FreeBSD-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/i386')
-rw-r--r-- | sys/i386/i386/i386-gdbstub.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/i386/i386-gdbstub.c b/sys/i386/i386/i386-gdbstub.c index fd283bd..0ea0a24 100644 --- a/sys/i386/i386/i386-gdbstub.c +++ b/sys/i386/i386/i386-gdbstub.c @@ -146,18 +146,18 @@ strcpy (char *dst, const char *src) static int putDebugChar (int c) /* write a single character */ { - if (gdbdev == NODEV) + if (gdb_arg == NULL) return 0; - (*gdb_putc)(gdbdev, c); + (*gdb_putc)(gdb_arg, c); return 1; } static int getDebugChar (void) /* read and return a single char */ { - if (gdbdev == NODEV) + if (gdb_arg == NULL) return -1; - return (*gdb_getc)(gdbdev); + return (*gdb_getc)(gdb_arg); } static const char hexchars[]="0123456789abcdef"; @@ -487,7 +487,7 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code) while (1) { - if (gdbdev == NODEV) + if (gdb_arg == NULL) return 1; /* somebody has removed the gdb device */ remcomOutBuffer[0] = 0; |