import gdb-2000-01-17 snapshot
[deliverable/binutils-gdb.git] / gdb / event-top.c
index 7e6cf8351ae869c92821c0771614120eac89b581..3d21a1a2b21adc08afbfa62d79c4ea2ed4c65e43 100644 (file)
@@ -22,6 +22,7 @@
 #include "defs.h"
 #include "top.h"
 #include "inferior.h"
+#include "target.h"
 #include "terminal.h"          /* for job_control */
 #include "signals.h"
 #include "event-loop.h"
@@ -409,7 +410,7 @@ stdin_event_handler (int error, gdb_client_data client_data)
       delete_file_handler (input_fd);
       discard_all_continuations ();
       /* If stdin died, we may as well kill gdb. */
-      exit (1);
+      quit_command ((char *) 0, stdin == instream);
     }
   else
     (*call_readline) (client_data);
This page took 0.03019 seconds and 4 git commands to generate.