summaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2008-05-02 13:58:38 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2008-05-02 13:58:38 +0000
commit1325d73b8489e4b61c56ef531f1c19c14dd6d65a (patch)
tree90895cf3f205a685f5e0b015cbc493bf7c9963c2 /gdb/event-top.c
parent56c24f0b5371f39f418ab482c8a81e2e029fcde0 (diff)
downloadgdb-1325d73b8489e4b61c56ef531f1c19c14dd6d65a.tar.gz
2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
* main.h (batch_silent): Declare. * event-top.c: Include main.h. (gdb_setup_readline): Remove extern batch_silent declaration. * infrun.c (normal_stop): Don't print source location when running in --batch-silent mode. * Makefile.in (event-top.o): Add main.h dependency.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 839e1114665..e8e9f68bb9a 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -31,6 +31,7 @@
#include <signal.h>
#include "exceptions.h"
#include "cli/cli-script.h" /* for reset_command_nest_depth */
+#include "main.h"
/* For dont_repeat() */
#include "gdbcmd.h"
@@ -1084,8 +1085,6 @@ gdb_setup_readline (void)
that the sync setup is ALL done in gdb_init, and we would only
mess it up here. The sync stuff should really go away over
time. */
- extern int batch_silent;
-
if (!batch_silent)
gdb_stdout = stdio_fileopen (stdout);
gdb_stderr = stdio_fileopen (stderr);