summaryrefslogtreecommitdiffstats
path: root/sys/alpha
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/alpha
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/alpha')
-rw-r--r--sys/alpha/alpha/alpha-gdbstub.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/alpha/alpha/alpha-gdbstub.c b/sys/alpha/alpha/alpha-gdbstub.c
index f011ed7..9e3dedb 100644
--- a/sys/alpha/alpha/alpha-gdbstub.c
+++ b/sys/alpha/alpha/alpha-gdbstub.c
@@ -153,18 +153,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";
@@ -625,7 +625,7 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
while (1)
{
- if (gdbdev == NODEV) /* somebody's removed it */
+ if (gdb_arg == NULL) /* somebody's removed it */
return; /* get out of here */
remcomOutBuffer[0] = 0;
OpenPOWER on IntegriCloud