diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-06-30 22:20:53 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-06-30 22:20:53 +0000 |
commit | c2e247c4ff760324df53fe50a9ef9168fd5e9452 (patch) | |
tree | 294925e76fa072b45c57eb038d0ab0a7f5c022a7 /gdb/ser-tcp.c | |
parent | 0798b091648999794c6d598fd2a4d29f88ab2ef6 (diff) | |
download | gdb-c2e247c4ff760324df53fe50a9ef9168fd5e9452.zip gdb-c2e247c4ff760324df53fe50a9ef9168fd5e9452.tar.gz gdb-c2e247c4ff760324df53fe50a9ef9168fd5e9452.tar.bz2 |
* inftarg.c: Remove unused include of terminal.h.
* signals.h: Don't undefine signals anymore.
* main.c: Use job_control from serial.h.
* fork-child.c (fork_inferior): Use gdb_setpgid.
* serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid.
* utils.c (quit): Use current_target->to_terminal_ours to figure
out whether we care about lack of job control, rather than __GO32__.
* utils.c: Include serial.h not terminal.h
(quit): Use job_control not TIOCGPGRP.
* terminal.h: Don't undefine TIOCGPGRP.
* serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT.
* utils.c (quit): Use it.
* serial.h: Add SERIAL_UN_FDOPEN.
* utils.c (quit): Use it.
* ser-unix.c: Add process group to ttystate.
[HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate.
* inflow.c: Include serial.h not terminal.h.
Use serial.h stuff to replace most of the maze of #ifdef's.
* inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function.
* serial.h: Document SERIAL_SET_TTY_STATE as being immediate.
* ser-unix.c: Use TIOCSETN not TIOCSETP so it is true.
* serial.h, ser-unix.c, ser-go32.c, ser-tcp.c:
Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and
SERIAL_SET_PROCESS_GROUP.
* inflow.c: Use them.
* config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h:
Define HAVE_TERMIOS.
* Various: Remove all use of TIOC*_BROKEN.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r-- | gdb/ser-tcp.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 5afe63e..6ff79aa 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -140,6 +140,15 @@ tcp_set_tty_state(scb, ttystate) return 0; } +static int +tcp_flush_output (scb) + serial_t scb; +{ + /* This is only used by utils.c on stdout, so it doesn't need to work + for tcp. */ + return 0; +} + static void tcp_raw(scb) serial_t scb; @@ -227,6 +236,24 @@ tcp_readchar(scb, timeout) } static int +tcp_noflush_set_tty_state (scb, new_ttystate, old_ttystate) + serial_t scb; + serial_ttystate new_ttystate; + serial_ttystate old_ttystate; +{ + return 0; +} + +static void +tcp_print_tty_state (scb, ttystate) + serial_t scb; + serial_ttystate ttystate; +{ + /* Nothing to print. */ + return; +} + +static int tcp_setbaudrate(scb, rate) serial_t scb; int rate; @@ -235,6 +262,15 @@ tcp_setbaudrate(scb, rate) } static int +tcp_set_process_group (scb, ttystate, group) + serial_t scb; + serial_ttystate ttystate; + int group; +{ + return 0; +} + +static int tcp_write(scb, str, len) serial_t scb; const char *str; @@ -273,10 +309,14 @@ static struct serial_ops tcp_ops = tcp_close, tcp_readchar, tcp_write, + tcp_flush_output, tcp_raw, tcp_get_tty_state, tcp_set_tty_state, + tcp_print_tty_state, + tcp_noflush_set_tty_state, tcp_setbaudrate, + tcp_set_process_group }; void |