diff options
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 0f174df..d3fef8b 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 "); |