mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
* remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.
This commit is contained in:
@ -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 ");
|
||||
|
Reference in New Issue
Block a user