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.
This commit is contained in:
Michael Snyder 2008-09-03 23:54:19 +00:00
parent 9ff3afda84
commit 8775bb90eb
6 changed files with 25 additions and 5 deletions

View file

@ -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;