aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2001-07-12 21:04:35 +0000
committerDaniel Jacobowitz <drow@false.org>2001-07-12 21:04:35 +0000
commitd0608e50b0526981afb18770b4960d97d2e2fc56 (patch)
tree5b2ef808c5590df37091d30daf883ad81f5bbfbf /gdb/gdbserver
parentde4ca854d8a677a07906c0d88cda18c47982bb1f (diff)
downloadgdb-d0608e50b0526981afb18770b4960d97d2e2fc56.zip
gdb-d0608e50b0526981afb18770b4960d97d2e2fc56.tar.gz
gdb-d0608e50b0526981afb18770b4960d97d2e2fc56.tar.bz2
* gdbserver/remote-utils.c (remote_open): Set VMIN to 1
in HAVE_TERMIO/HAVE_TERMIOS cases.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/remote-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index 35faf02..cfde0a7 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -64,7 +64,7 @@ remote_open (char *name)
termios.c_lflag = 0;
termios.c_cflag &= ~(CSIZE | PARENB);
termios.c_cflag |= CLOCAL | CS8;
- termios.c_cc[VMIN] = 0;
+ termios.c_cc[VMIN] = 1;
termios.c_cc[VTIME] = 0;
tcsetattr (remote_desc, TCSANOW, &termios);
@@ -81,7 +81,7 @@ remote_open (char *name)
termio.c_lflag = 0;
termio.c_cflag &= ~(CSIZE | PARENB);
termio.c_cflag |= CLOCAL | CS8;
- termio.c_cc[VMIN] = 0;
+ termio.c_cc[VMIN] = 1;
termio.c_cc[VTIME] = 0;
ioctl (remote_desc, TCSETA, &termio);