Make prompt_for_continue call throw_quit directly.
authorSandra Loosemore <sandra@codesourcery.com>
Sat, 19 Dec 2015 01:53:11 +0000 (17:53 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Sat, 19 Dec 2015 01:53:11 +0000 (17:53 -0800)
2015-12-18  Sandra Loosemore  <sandra@codesourcery.com>

gdb/
* utils.c (prompt_for_continue): Call throw_quit directly on 'q'.

gdb/ChangeLog
gdb/utils.c

index db2cdf46017430524cf1b557ae1d653a40f9ffd9..a4ca15b0469db8a874cb1e9d7f728f6d5eabddb1 100644 (file)
@@ -1,3 +1,7 @@
+2015-12-18  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * utils.c (prompt_for_continue): Call throw_quit directly on 'q'.
+
 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
 
        * arm-tdep.c (arm_get_next_pcs_read_memory_unsigned_integer): Cast
index 284fbbb834783191df980711c5f5ab81b2b91a24..d29ba2740cbc2b5b9d4c73baf1029a5679457a0a 100644 (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--;
This page took 0.03333 seconds and 4 git commands to generate.