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'.
This commit is contained in:
Sandra Loosemore
2015-12-18 17:53:11 -08:00
parent 420d30a957
commit 1690b6163c
2 changed files with 6 additions and 1 deletions

View File

@@ -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--;