mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 22:15:12 +08:00
* remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
Tue Sep 21 11:44:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Tue Sep 21 11:44:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.
|
||||||
|
|
||||||
* printcmd.c (print_scalar_formatted): When truncating value we are
|
* printcmd.c (print_scalar_formatted): When truncating value we are
|
||||||
going to print as unsigned, handle it generally for any length
|
going to print as unsigned, handle it generally for any length
|
||||||
less than sizeof (LONGEST), rather than special-casing sizeof (char),
|
less than sizeof (LONGEST), rather than special-casing sizeof (char),
|
||||||
|
@ -183,6 +183,10 @@ gr_open(args, from_tty, gr)
|
|||||||
|
|
||||||
SERIAL_RAW (sr_get_desc());
|
SERIAL_RAW (sr_get_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 (sr_get_desc ());
|
||||||
|
|
||||||
/* default retries */
|
/* default retries */
|
||||||
if (sr_get_retries() == 0)
|
if (sr_get_retries() == 0)
|
||||||
sr_set_retries(1);
|
sr_set_retries(1);
|
||||||
|
@ -302,6 +302,10 @@ device is attached to the remote system (e.g. /dev/ttya).");
|
|||||||
|
|
||||||
SERIAL_RAW (remote_desc);
|
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)
|
if (from_tty)
|
||||||
{
|
{
|
||||||
puts_filtered ("Remote debugging using ");
|
puts_filtered ("Remote debugging using ");
|
||||||
|
Reference in New Issue
Block a user