aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-nrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-nrom.c')
-rw-r--r--gdb/remote-nrom.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/remote-nrom.c b/gdb/remote-nrom.c
index 49e51c3..86a0718 100644
--- a/gdb/remote-nrom.c
+++ b/gdb/remote-nrom.c
@@ -66,7 +66,7 @@ expect (char *string)
char *p = string;
int c;
- immediate_quit = 1;
+ immediate_quit++;
while (1)
{
@@ -76,8 +76,7 @@ expect (char *string)
{
if (*p == '\0')
{
- immediate_quit = 0;
-
+ immediate_quit--;
return 0;
}
}