* breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
[deliverable/binutils-gdb.git] / gdb / remote.c
index 0f174df0e42f4631608a5a87e9a3647ab8854368..d3fef8ba12b440c4b283dec1875f3cb25909dd78 100644 (file)
@@ -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 ");
This page took 0.022954 seconds and 4 git commands to generate.