aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2005-11-01 11:09:18 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2005-11-01 11:09:18 +0000
commit1a088d065a1177313c8304095f49b74662eddd04 (patch)
treea2bd89d9f62dec5792fc51653fc701914032e4b0 /gdb/event-top.c
parent0876dd7ea13998eb02dc78feabc078fb13242582 (diff)
downloadgdb-1a088d065a1177313c8304095f49b74662eddd04.zip
gdb-1a088d065a1177313c8304095f49b74662eddd04.tar.gz
gdb-1a088d065a1177313c8304095f49b74662eddd04.tar.bz2
2005-11-01 Andrew Stubbs <andrew.stubbs@st.com>
* event-top.c (gdb_setup_readline): Don't set gdb_stdout when --batch-silent option was given. * main.c (batch_silent): New variable. (captured_main): Add new option --batch-silent. (print_gdb_help): Likewise. doc/ * gdb.texinfo (Choosing modes): Add --batch-silent.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 4614d4d..bc1fe8e 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -1110,8 +1110,10 @@ 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 batch_silent;
- gdb_stdout = stdio_fileopen (stdout);
+ if (!batch_silent)
+ gdb_stdout = stdio_fileopen (stdout);
gdb_stderr = stdio_fileopen (stderr);
gdb_stdlog = gdb_stderr; /* for moment */
gdb_stdtarg = gdb_stderr; /* for moment */