aboutsummaryrefslogtreecommitdiff
path: root/sys/gdb
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2006-05-26 11:54:32 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2006-05-26 11:54:32 +0000
commit9b188af13cfbcdc32c880c5110c23855b02acb3c (patch)
treee55708a0564b13c180f6e25a2ed24724571a805c /sys/gdb
parente8d86c0e50f38582fa37fe571c0635153991bbab (diff)
downloadsrc-9b188af13cfbcdc32c880c5110c23855b02acb3c.tar.gz
src-9b188af13cfbcdc32c880c5110c23855b02acb3c.zip
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.
Notes
Notes: svn path=/head/; revision=158950
Diffstat (limited to 'sys/gdb')
-rw-r--r--sys/gdb/gdb.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/gdb/gdb.h b/sys/gdb/gdb.h
index 6fd75583b4c0..97b4a4adad43 100644
--- a/sys/gdb/gdb.h
+++ b/sys/gdb/gdb.h
@@ -38,7 +38,6 @@ typedef void gdb_term_f(void);
struct gdb_dbgport {
const char *gdb_name;
- gdb_checkc_f *gdb_checkc;
gdb_getc_f *gdb_getc;
gdb_init_f *gdb_init;
gdb_probe_f *gdb_probe;
@@ -47,15 +46,14 @@ struct gdb_dbgport {
int gdb_active;
};
-#define GDB_DBGPORT(name, probe, init, term, checkc, getc, putc) \
+#define GDB_DBGPORT(name, probe, init, term, getc, putc) \
static struct gdb_dbgport name##_gdb_dbgport = { \
.gdb_name = #name, \
- .gdb_checkc = checkc, \
- .gdb_getc = getc, \
- .gdb_init = init, \
.gdb_probe = probe, \
+ .gdb_init = init, \
+ .gdb_term = term, \
+ .gdb_getc = getc, \
.gdb_putc = putc, \
- .gdb_term = term \
}; \
DATA_SET(gdb_dbgport_set, name##_gdb_dbgport)