* lin-lwp.c (stop_wait_callback): Remove bogus assertions in the
[deliverable/binutils-gdb.git] / gdb / remote-utils.c
index a31da1c623ef2aebea8541df70a8bf9279e5b2c9..207761299f29d931ffb971ff72ff8a60b8713c9b 100644 (file)
@@ -165,7 +165,7 @@ gr_open (char *args, int from_tty, struct gr_settings *gr)
   if ((dcache = gr_get_dcache()) == NULL)
     gr_set_dcache (dcache_init (gr->readfunc, gr->writefunc));
   else
-    dcache_flush (dcache);
+    dcache_invd (dcache);
 
   if (sr_get_desc () != NULL)
     gr_close (0);
@@ -264,7 +264,7 @@ sr_expect (char *string)
 {
   char *p = string;
 
-  immediate_quit = 1;
+  immediate_quit++;
   while (1)
     {
       if (sr_readchar () == *p)
@@ -272,7 +272,7 @@ sr_expect (char *string)
          p++;
          if (*p == '\0')
            {
-             immediate_quit = 0;
+             immediate_quit--;
              return;
            }
        }
This page took 0.023086 seconds and 4 git commands to generate.