aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-unix.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-25 20:06:36 +0000
committerMark Mitchell <mark@codesourcery.com>2005-03-25 20:06:36 +0000
commitdd5da072a1949704e88413e4e1b721cb8e4bf80c (patch)
tree54f92f397955605e2a31dc68f72c351510be22c3 /gdb/ser-unix.c
parent3eb25fda5de9c365115e248fcd6fb65de5d6fcc6 (diff)
downloadgdb-dd5da072a1949704e88413e4e1b721cb8e4bf80c.zip
gdb-dd5da072a1949704e88413e4e1b721cb8e4bf80c.tar.gz
gdb-dd5da072a1949704e88413e4e1b721cb8e4bf80c.tar.bz2
* ser-base.c (ser_unix_write): Rename to ...
(ser_base_write): ... this. (ser_unix_nop_flush_output): Rename to ... (ser_base_flush_output): ... this. (ser_unix_flush_input): Rename to ... (ser_base_flush_input): ... this. (ser_unix_nop_send_break): Rename to ... (ser_base_send_break): ... this. (ser_unix_nop_drain_output): Rename to ... (ser_base_drain_output): ... this. (ser_unix_nop_raw): Rename to ... (ser_base_raw): ... this. (ser_unix_nop_get_tty_state): Rename to ... (ser_base_set_tty_state): ... this. (ser_unix_nop_noflush_set_tty_state): Rename to ... (ser_base_noflush_set_tty_state): ... this. (ser_unix_nop_print_tty_state): Rename to ... (ser_base_print_tty_state): ... this. (ser_unix_nop_setbaudrate): Rename to ... (ser_base_setbaudrate): ... this. (ser_unix_nop_setstopbits): Rename to ... (ser_base_setstopbits): ... this. (ser_unix_async): Rename to ... (ser_base_async): ... this. * ser-base.h (ser_unix_write): Rename to ... (ser_base_write): ... this. (ser_unix_nop_flush_output): Rename to ... (ser_base_flush_output): ... this. (ser_unix_flush_input): Rename to ... (ser_base_flush_input): ... this. (ser_unix_nop_send_break): Rename to ... (ser_base_send_break): ... this. (ser_unix_nop_drain_output): Rename to ... (ser_base_drain_output): ... this. (ser_unix_nop_raw): Rename to ... (ser_base_raw): ... this. (ser_unix_nop_get_tty_state): Rename to ... (ser_base_set_tty_state): ... this. (ser_unix_nop_noflush_set_tty_state): Rename to ... (ser_base_noflush_set_tty_state): ... this. (ser_unix_nop_print_tty_state): Rename to ... (ser_base_print_tty_state): ... this. (ser_unix_nop_setbaudrate): Rename to ... (ser_base_setbaudrate): ... this. (ser_unix_nop_setstopbits): Rename to ... (ser_base_setstopbits): ... this. (ser_unix_async): Rename to ... (ser_base_async): ... this. * ser-pipe.c (_initialize_ser_pipe): Update accordingly. * ser-tcp.c (_initialize_ser_tcp): Likewise. * ser-unix.c (hardwire_flush_input): Likewise. (_initializer_ser_hardwire): Likewise.
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r--gdb/ser-unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index 4f709de..14df459 100644
--- a/gdb/ser-unix.c
+++ b/gdb/ser-unix.c
@@ -329,7 +329,7 @@ hardwire_flush_output (struct serial *scb)
static int
hardwire_flush_input (struct serial *scb)
{
- ser_unix_flush_input (scb);
+ ser_base_flush_input (scb);
#ifdef HAVE_TERMIOS
return tcflush (scb->fd, TCIFLUSH);
@@ -1062,7 +1062,7 @@ _initialize_ser_hardwire (void)
the old TERMIOS/SGTTY/... timer code has been flushed. cagney
1999-09-16. */
ops->readchar = hardwire_readchar;
- ops->write = ser_unix_write;
+ ops->write = ser_base_write;
ops->flush_output = hardwire_flush_output;
ops->flush_input = hardwire_flush_input;
ops->send_break = hardwire_send_break;
@@ -1074,6 +1074,6 @@ _initialize_ser_hardwire (void)
ops->setbaudrate = hardwire_setbaudrate;
ops->setstopbits = hardwire_setstopbits;
ops->drain_output = hardwire_drain_output;
- ops->async = ser_unix_async;
+ ops->async = ser_base_async;
serial_add_interface (ops);
}