From 1325d73b8489e4b61c56ef531f1c19c14dd6d65a Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Fri, 2 May 2008 13:58:38 +0000 Subject: 2008-05-02 Andrew Stubbs * 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. --- gdb/event-top.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/event-top.c') 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 #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); -- cgit v1.2.1