aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2015-12-18 17:53:11 -0800
committerSandra Loosemore <sandra@codesourcery.com>2015-12-18 17:53:11 -0800
commit1690b6163c6546305cb5f8811d4c7348d8f435e0 (patch)
treeb8c1e782bf2a66dc5459e6b0ed2bfad38a0b3f21 /gdb/utils.c
parent420d30a957d0bc3a773de0490b26aeae1ad3b5a9 (diff)
downloadgdb-1690b6163c6546305cb5f8811d4c7348d8f435e0.zip
gdb-1690b6163c6546305cb5f8811d4c7348d8f435e0.tar.gz
gdb-1690b6163c6546305cb5f8811d4c7348d8f435e0.tar.bz2
Make prompt_for_continue call throw_quit directly.
2015-12-18 Sandra Loosemore <sandra@codesourcery.com> gdb/ * utils.c (prompt_for_continue): Call throw_quit directly on 'q'.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 284fbbb..d29ba27 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1868,7 +1868,8 @@ prompt_for_continue (void)
while (*p == ' ' || *p == '\t')
++p;
if (p[0] == 'q')
- quit ();
+ /* Do not call quit here; there is no possibility of SIGINT. */
+ throw_quit ("Quit");
xfree (ignore);
}
immediate_quit--;