summaryrefslogtreecommitdiffstats
path: root/sys/gdb
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-05-26 13:54:27 +0000
committerphk <phk@FreeBSD.org>2006-05-26 13:54:27 +0000
commit18c5cc5ccc6809ea423d197cbd9fa52fefe8477c (patch)
tree25724ea9925efb0585038cec9123c95c80258be3 /sys/gdb
parentc7b8431cf0c73811b1d6e59c76103009907b5961 (diff)
downloadFreeBSD-src-18c5cc5ccc6809ea423d197cbd9fa52fefe8477c.zip
FreeBSD-src-18c5cc5ccc6809ea423d197cbd9fa52fefe8477c.tar.gz
Convert to new console api
Diffstat (limited to 'sys/gdb')
-rw-r--r--sys/gdb/gdb_cons.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/gdb/gdb_cons.c b/sys/gdb/gdb_cons.c
index 750b031..edd4406 100644
--- a/sys/gdb/gdb_cons.c
+++ b/sys/gdb/gdb_cons.c
@@ -82,8 +82,13 @@ gdb_cninit(struct consdev *cp)
}
}
+static void
+gdb_cnterm(struct consdev *cp)
+{
+}
+
static int
-gdb_nogetc(struct consdev *cp)
+gdb_cngetc(struct consdev *cp)
{
return -1;
}
@@ -154,9 +159,7 @@ gdb_cnputc(struct consdev *cp, int c)
}
}
-/* NB: no get interface, we supply nogetc for checkc too */
-CONS_DRIVER(gdb, gdb_cnprobe, gdb_cninit, NULL, gdb_nogetc, gdb_nogetc,
- gdb_cnputc, NULL);
+CONSOLE_DRIVER(gdb);
/*
* Our console device only gets attached if the system is booted
OpenPOWER on IntegriCloud