diff options
author | Michael Snyder <msnyder@vmware.com> | 2008-09-03 23:54:19 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2008-09-03 23:54:19 +0000 |
commit | 8775bb90ebd4f68b1aaa8525a9bc435123e8c1a5 (patch) | |
tree | 340c8fa5dbaa066aa7aab4159578b570e1881e64 /gdb/ser-tcp.c | |
parent | 9ff3afda84c2aa2d6fe70b91a5fd9def10e15228 (diff) | |
download | gdb-8775bb90ebd4f68b1aaa8525a9bc435123e8c1a5.zip gdb-8775bb90ebd4f68b1aaa8525a9bc435123e8c1a5.tar.gz gdb-8775bb90ebd4f68b1aaa8525a9bc435123e8c1a5.tar.bz2 |
2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
* ser-tcp.c (ser_tcp_send_break): New function.
(_initialize_ser_tcp): Use ser_tcp_send_break.
* ser-tcp.h (ser_tcp_send_break): New prototype.
2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
* gdb.texinfo (Interrupts): Mention TCP interface for
sending BREAK.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r-- | gdb/ser-tcp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 6dd8342..dcf288d 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -257,6 +257,13 @@ net_write_prim (struct serial *scb, const void *buf, size_t count) return send (scb->fd, buf, count, 0); } +int +ser_tcp_send_break (struct serial *scb) +{ + /* Send telnet IAC and BREAK characters. */ + return (serial_write (scb, "\377\363", 2)); +} + void _initialize_ser_tcp (void) { @@ -276,7 +283,7 @@ _initialize_ser_tcp (void) ops->write = ser_base_write; ops->flush_output = ser_base_flush_output; ops->flush_input = ser_base_flush_input; - ops->send_break = ser_base_send_break; + ops->send_break = ser_tcp_send_break; ops->go_raw = ser_base_raw; ops->get_tty_state = ser_base_get_tty_state; ops->set_tty_state = ser_base_set_tty_state; |