diff options
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r-- | gdb/monitor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c index ca7dd30..c5d6da6 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -521,7 +521,7 @@ monitor_expect (char *string, char *buf, int buflen) fprintf_unfiltered (gdb_stdlog, "MON Expecting '%s'\n", safe_string); } - immediate_quit = 1; + immediate_quit++; while (1) { if (buf) @@ -529,7 +529,7 @@ monitor_expect (char *string, char *buf, int buflen) if (buflen < 2) { *buf = '\000'; - immediate_quit = 0; + immediate_quit--; return -1; } @@ -549,7 +549,7 @@ monitor_expect (char *string, char *buf, int buflen) p++; if (*p == '\0') { - immediate_quit = 0; + immediate_quit--; if (buf) { |