Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew STUBBS <andrew.stubbs@st.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb@sources.redhat.com
Subject: Re: RFC: GDB as a loader 1/3: silent batch mode
Date: Thu, 27 Oct 2005 17:57:00 -0000	[thread overview]
Message-ID: <43611474.7070609@st.com> (raw)
In-Reply-To: <uwtk9cm90.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 501 bytes --]

Eli Zaretskii wrote:
>>Date: Tue, 18 Oct 2005 12:26:55 +0100
>>From: Andrew STUBBS <andrew.stubbs@st.com>
>>
>>The attached patch implements a new option --batch-silent. This does
>>much the same a --batch, except that it also disables gdb_stdout. This
>>means that all GDB outputs, other than errors, are hidden.
> 
> 
> Thanks.
> 
> If this patch is accepted, please also send additions to the GDB
> manual that document the new command-line option.
> 

Documentation patch attached.

Andrew Stubbs

[-- Attachment #2: batch-silent-docs.patch --]
[-- Type: text/plain, Size: 1047 bytes --]

2005-10-27  Andrew Stubbs  <andrew.stubbs@st.com>

	* gdb.texinfo (Choosing modes): Add --batch-silent.

Index: src/gdb/doc/gdb.texinfo
===================================================================
--- src.orig/gdb/doc/gdb.texinfo	2005-10-03 23:26:54.000000000 +0100
+++ src/gdb/doc/gdb.texinfo	2005-10-27 18:33:24.000000000 +0100
@@ -994,6 +994,18 @@ Program exited normally.
 @value{GDBN} control terminates) is not issued when running in batch
 mode.
 
+@item -batch-silent
+@cindex @code{--batch-silent}
+Run in batch mode exactly like @samp{-batch}, but totally silently. All GDB
+output to @code{stdout} is prevented (@code{stderr} is unaffected). This is
+much quieter than @samp{-silent} and would be useless for an interactive
+session.
+
+This is particularly useful when using targets that give @samp{Loading section} messages, for example.
+
+Note that targets that give their output via GDB, as opposed to writing
+directly to @code{stdout}, will also be made silent.
+
 @item -nowindows
 @itemx -nw
 @cindex @code{--nowindows}

  parent reply	other threads:[~2005-10-27 17:57 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18 11:28 Andrew STUBBS
2005-10-19 19:58 ` Eli Zaretskii
2005-10-21 14:26   ` Andrew STUBBS
2005-10-21 14:54     ` Eli Zaretskii
2005-10-21 15:42       ` Andrew STUBBS
2005-10-21 16:42         ` Daniel Jacobowitz
2005-10-21 17:06           ` Andrew STUBBS
2005-10-21 22:04         ` Eli Zaretskii
2005-10-27 17:57   ` Andrew STUBBS [this message]
2005-10-27 19:14     ` Eli Zaretskii
2005-10-28  9:52       ` Andrew STUBBS
2005-10-28 12:49         ` Eli Zaretskii
2005-10-28 14:01           ` Andrew STUBBS
2005-10-28 17:23             ` Eli Zaretskii
2005-10-28 17:35               ` Andrew STUBBS
2005-10-29  9:52                 ` Eli Zaretskii
2005-10-28 20:38               ` Daniel Jacobowitz
2005-10-29 10:32                 ` Eli Zaretskii
2005-10-28 20:40           ` Daniel Jacobowitz
2005-10-28 20:47 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43611474.7070609@st.com \
    --to=andrew.stubbs@st.com \
    --cc=eliz@gnu.org \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox