aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-utils.c')
-rw-r--r--gdb/remote-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote-utils.c b/gdb/remote-utils.c
index 236a0ec..2077612 100644
--- a/gdb/remote-utils.c
+++ b/gdb/remote-utils.c
@@ -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;
}
}