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
commitd01a8610c32e2e361b3b9f0f43c0011f84558371 (patch)
tree920d9f3fd8ab886b07856d34093ce717e04568fb /gdb/event-top.c
parent5009afc5ba7a0d57f28fbc834757145fe1f45549 (diff)
downloadbinutils-gdb-d01a8610c32e2e361b3b9f0f43c0011f84558371.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);