* lin-lwp.c (stop_wait_callback): Remove bogus assertions in the
[deliverable/binutils-gdb.git] / gdb / remote-adapt.c
index 4e6b70b25db52acc011eb6f8fce46c93ec74bb74..f5cc1234d2b2d8d1f010a5f412de23609977f5ac 100644 (file)
@@ -201,7 +201,7 @@ expect (char *string)
   char *p = string;
 
   fflush (adapt_stream);
-  immediate_quit = 1;
+  immediate_quit++;
   while (1)
     {
       if (readchar () == *p)
@@ -209,7 +209,7 @@ expect (char *string)
          p++;
          if (*p == '\0')
            {
-             immediate_quit = 0;
+             immediate_quit--;
              return;
            }
        }
This page took 0.023597 seconds and 4 git commands to generate.