diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-21 20:35:36 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-21 20:35:36 +0000 |
commit | e15f2a54574c6021558e6f965733e576ed53bc39 (patch) | |
tree | 4c3b1b8cc53f8d224af71753d0ade8741e495f25 /gdb/remote.c | |
parent | afa01c54deba6552a785b3066cf5a061eff88917 (diff) | |
download | binutils-gdb-e15f2a54574c6021558e6f965733e576ed53bc39.tar.gz |
* remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 0f174df0e42..d3fef8ba12b 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -302,6 +302,10 @@ device is attached to the remote system (e.g. /dev/ttya)."); SERIAL_RAW (remote_desc); + /* If there is something sitting in the buffer we might take it as a + response to a command, which would be bad. */ + SERIAL_FLUSH_INPUT (remote_desc); + if (from_tty) { puts_filtered ("Remote debugging using "); |