From 88cc9a424a0ab1f59579f1404bf6d0cc793fafc5 Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Tue, 7 Dec 1993 00:41:42 +0000 Subject: [PATCH] set the other three terminal state pieces for systems that HAVE_SGTTY --- gdb/ChangeLog | 5 +++++ gdb/ser-unix.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ba61504a77b..3748fd92ce3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 6 16:34:10 1993 K. Richard Pixley (rich@cygnus.com) + + * ser-unix.c (set_tty_state): set the rest of the terminal state + pieces. + Mon Dec 6 12:01:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * configure.in: Recognize mips* for all mips targets. diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index c77789514d9..63207ddf143 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -150,6 +150,12 @@ set_tty_state(scb, state) #ifdef HAVE_SGTTY if (ioctl (scb->fd, TIOCSETN, &state->sgttyb) < 0) return -1; + if (ioctl (scb->fd, TIOCSETC, &state->tc) < 0) + return -1; + if (ioctl (scb->fd, TIOCSLTC, &state->ltc) < 0) + return -1; + if (ioctl (scb->fd, TIOCLSET, &state->lmode) < 0) + return -1; return 0; #endif -- 2.30.2