aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-st.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-st.c')
-rw-r--r--gdb/remote-st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote-st.c b/gdb/remote-st.c
index 485f941..aa00e8f 100644
--- a/gdb/remote-st.c
+++ b/gdb/remote-st.c
@@ -117,7 +117,7 @@ expect (char *string, int discard)
char *p = string;
int c;
- immediate_quit = 1;
+ immediate_quit++;
while (1)
{
c = readchar (timeout);
@@ -125,7 +125,7 @@ expect (char *string, int discard)
{
if (*p == '\0')
{
- immediate_quit = 0;
+ immediate_quit--;
return;
}
}