This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Make prompt_for_continue call throw_quit directly.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1690b6163c6546305cb5f8811d4c7348d8f435e0

commit 1690b6163c6546305cb5f8811d4c7348d8f435e0
Author: Sandra Loosemore <sandra@codesourcery.com>
Date:   Fri Dec 18 17:53:11 2015 -0800

    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'.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/utils.c   | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index db2cdf4..a4ca15b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
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--;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]