From 1690b6163c6546305cb5f8811d4c7348d8f435e0 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Fri, 18 Dec 2015 17:53:11 -0800 Subject: Make prompt_for_continue call throw_quit directly. 2015-12-18 Sandra Loosemore gdb/ * utils.c (prompt_for_continue): Call throw_quit directly on 'q'. --- gdb/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/utils.c') 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--; -- cgit v1.1