diff options
author | phk <phk@FreeBSD.org> | 2006-05-26 11:54:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-05-26 11:54:32 +0000 |
commit | 7879ac129f63a7b5e09a9ba170e72922d4a1a91c (patch) | |
tree | e55708a0564b13c180f6e25a2ed24724571a805c /sys/gdb/gdb.h | |
parent | 0b37dc8074117c2bca3e406c6da6a4a76c72e087 (diff) | |
download | FreeBSD-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/gdb/gdb.h')
-rw-r--r-- | sys/gdb/gdb.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/gdb/gdb.h b/sys/gdb/gdb.h index 6fd7558..97b4a4a 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) |