aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-03-07 09:03:37 +0000
committerStu Grossman <grossman@cygnus>1995-03-07 09:03:37 +0000
commit85c8b135fe413021e644dbd69a56ae7abe455f2e (patch)
treef034a40857e4f3eff1176ea6664b8967e6674051 /gdb/ser-tcp.c
parent7baea9460866303161d1598eddb93a936973ef1d (diff)
downloadgdb-85c8b135fe413021e644dbd69a56ae7abe455f2e.zip
gdb-85c8b135fe413021e644dbd69a56ae7abe455f2e.tar.gz
gdb-85c8b135fe413021e644dbd69a56ae7abe455f2e.tar.bz2
* serial.h ser-go32.c ser-go32-para.c ser-mac.c ser-tcp.c
ser-unix.c: Add SERIAL_SETSTOPBITS to set the number of stopbits (needed for IDP board?!?!?).
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index db9daa2..029a625 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -38,6 +38,7 @@ static void tcp_raw PARAMS ((serial_t scb));
static int wait_for PARAMS ((serial_t scb, int timeout));
static int tcp_readchar PARAMS ((serial_t scb, int timeout));
static int tcp_setbaudrate PARAMS ((serial_t scb, int rate));
+static int tcp_setstopbits PARAMS ((serial_t scb, int num));
static int tcp_write PARAMS ((serial_t scb, const char *str, int len));
/* FIXME: static void tcp_restore PARAMS ((serial_t scb)); */
static void tcp_close PARAMS ((serial_t scb));
@@ -265,6 +266,14 @@ tcp_setbaudrate(scb, rate)
}
static int
+tcp_setstopbits(scb, num)
+ serial_t scb;
+ int num;
+{
+ return 0; /* Never fails! */
+}
+
+static int
tcp_write(scb, str, len)
serial_t scb;
const char *str;
@@ -312,6 +321,7 @@ static struct serial_ops tcp_ops =
tcp_print_tty_state,
tcp_noflush_set_tty_state,
tcp_setbaudrate,
+ tcp_setstopbits,
};
void