This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RFC: Warn at quit that we will kill the program
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Wed, 20 Feb 2008 10:37:00 -0500
- Subject: RFC: Warn at quit that we will kill the program
Sandra noticed that GDB's exit message does not say we're about to
kill the running program. In native debugging this is somewhat
apparent (though not completely), but not in remote debugging.
What do you think of this patch?
(Not tested yet; I see that the message appears in the testsuite, so
it will require a testsuite update.)
--
Daniel Jacobowitz
CodeSourcery
2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
* top.c (quit_confirm): Warn that we will kill the program.
Index: top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.129
diff -u -p -r1.129 top.c
--- top.c 1 Jan 2008 22:53:13 -0000 1.129
+++ top.c 20 Feb 2008 15:32:26 -0000
@@ -1212,7 +1212,7 @@ quit_confirm (void)
else if (attach_flag)
s = "The program is running. Quit anyway (and detach it)? ";
else
- s = "The program is running. Exit anyway? ";
+ s = "The program is running. Quit anyway (and kill it)? ";
if (!query ("%s", s))
return 0;