aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2006-12-06 16:49:57 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2006-12-06 16:49:57 +0000
commitfa3fd85b0634c30ae1adeeb80e92c03fc1d4f08a (patch)
treeef217de8b962ad6feded29629d14263aeb200d96 /gdb/event-top.c
parent4fd454c89d63c73fd5e99ce5eb2a3174fcfd4f5d (diff)
downloadgdb-fa3fd85b0634c30ae1adeeb80e92c03fc1d4f08a.zip
gdb-fa3fd85b0634c30ae1adeeb80e92c03fc1d4f08a.tar.gz
gdb-fa3fd85b0634c30ae1adeeb80e92c03fc1d4f08a.tar.bz2
2006-12-06 Andrew Stubbs <andrew.stubbs@st.com>
* event-top.c (command_handler): On EOF, print 'quit' and run quit command via execute_command such that hooks and trace work. * utils.c (defaulted_query): On EOF, print default answer and newline.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 6e26002..d7d6d97 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -501,7 +501,10 @@ command_handler (char *command)
but GDB is still alive. In such a case, we just quit gdb
killing the inferior program too. */
if (command == 0)
- quit_command ((char *) 0, stdin == instream);
+ {
+ printf_unfiltered ("quit\n");
+ execute_command ("quit", stdin == instream);
+ }
time_at_cmd_start = get_run_time ();