aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-unix.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-12-07 00:41:42 +0000
committerK. Richard Pixley <rich@cygnus>1993-12-07 00:41:42 +0000
commit88cc9a424a0ab1f59579f1404bf6d0cc793fafc5 (patch)
treed2e100a243d7bb8ac6e326a5808025aefb066871 /gdb/ser-unix.c
parent419093bc9c7d22cbcdcbfdabc777f2d134e95dfa (diff)
downloadfsf-binutils-gdb-88cc9a424a0ab1f59579f1404bf6d0cc793fafc5.zip
fsf-binutils-gdb-88cc9a424a0ab1f59579f1404bf6d0cc793fafc5.tar.gz
fsf-binutils-gdb-88cc9a424a0ab1f59579f1404bf6d0cc793fafc5.tar.bz2
set the other three terminal state pieces for systems that HAVE_SGTTY
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r--gdb/ser-unix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index c777895..63207dd 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