aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
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 ();