aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-unix.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-18 04:29:34 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-18 04:29:34 +0000
commitd881dd869fc70d807f3630328606c3d3cb3e83f9 (patch)
tree377e0e123725ad574423095c84ee286f74f94d32 /gdb/ser-unix.c
parent7a68f30a32b9c74abd7f321fe2062809124a76b9 (diff)
downloadfsf-binutils-gdb-d881dd869fc70d807f3630328606c3d3cb3e83f9.zip
fsf-binutils-gdb-d881dd869fc70d807f3630328606c3d3cb3e83f9.tar.gz
fsf-binutils-gdb-d881dd869fc70d807f3630328606c3d3cb3e83f9.tar.bz2
* ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
* inflow.c (terminal_ours_1): When discussing how to deal with the tty state, make note of query() as well as readline.
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r--gdb/ser-unix.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index 63207dd..d14a996 100644
--- a/gdb/ser-unix.c
+++ b/gdb/ser-unix.c
@@ -198,23 +198,9 @@ hardwire_noflush_set_tty_state (scb, new_ttystate, old_ttystate)
new_state = *(struct hardwire_ttystate *)new_ttystate;
-#ifdef HAVE_TERMIOS
- /* I'm not sure whether this is necessary; the manpage makes no mention
- of discarding input when switching to/from ICANON. */
- if (state->termios.c_lflag & ICANON)
- new_state.termios.c_lflag |= ICANON;
- else
- new_state.termios.c_lflag &= ~ICANON;
-#endif
-
-#ifdef HAVE_TERMIO
- /* I'm not sure whether this is necessary; the manpage makes no mention
- of discarding input when switching to/from ICANON. */
- if (state->termio.c_lflag & ICANON)
- new_state.termio.c_lflag |= ICANON;
- else
- new_state.termio.c_lflag &= ~ICANON;
-#endif
+ /* Don't change in or out of raw mode; we don't want to flush input.
+ termio and termios have no such restriction; for them flushing input
+ is separate from setting the attributes. */
#ifdef HAVE_SGTTY
if (state->sgttyb.sg_flags & RAW)