summaryrefslogtreecommitdiffstats
path: root/sys/dev/dcons
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-05-26 11:54:32 +0000
committerphk <phk@FreeBSD.org>2006-05-26 11:54:32 +0000
commit7879ac129f63a7b5e09a9ba170e72922d4a1a91c (patch)
treee55708a0564b13c180f6e25a2ed24724571a805c /sys/dev/dcons
parent0b37dc8074117c2bca3e406c6da6a4a76c72e087 (diff)
downloadFreeBSD-src-7879ac129f63a7b5e09a9ba170e72922d4a1a91c.zip
FreeBSD-src-7879ac129f63a7b5e09a9ba170e72922d4a1a91c.tar.gz
Eliminate gdb_checkc member from GDB_DBGPORT(), it is never used.
Use polling behaviour for gdb_getc() where convenient, this edges us closer to the console code.
Diffstat (limited to 'sys/dev/dcons')
-rw-r--r--sys/dev/dcons/dcons_os.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c
index 97f9668..ce3cc94 100644
--- a/sys/dev/dcons/dcons_os.c
+++ b/sys/dev/dcons/dcons_os.c
@@ -183,11 +183,10 @@ static gdb_probe_f dcons_dbg_probe;
static gdb_init_f dcons_dbg_init;
static gdb_term_f dcons_dbg_term;
static gdb_getc_f dcons_dbg_getc;
-static gdb_checkc_f dcons_dbg_checkc;
static gdb_putc_f dcons_dbg_putc;
GDB_DBGPORT(dcons, dcons_dbg_probe, dcons_dbg_init, dcons_dbg_term,
- dcons_dbg_checkc, dcons_dbg_getc, dcons_dbg_putc);
+ dcons_dbg_getc, dcons_dbg_putc);
extern struct gdb_dbgport *gdb_cur;
#endif
@@ -733,13 +732,6 @@ dcons_dbg_putc(int c)
}
static int
-dcons_dbg_checkc(void)
-{
- struct dcons_softc *dc = &sc[DCONS_GDB];
- return (dcons_os_checkc(dc));
-}
-
-static int
dcons_dbg_getc(void)
{
struct dcons_softc *dc = &sc[DCONS_GDB];
OpenPOWER on IntegriCloud