public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Andrew STUBBS <andrew.stubbs@st.com>
Cc: gdb@sources.redhat.com
Subject: Re: RFC: GDB as a loader 1/3: silent batch mode
Date: Fri, 28 Oct 2005 20:47:00 -0000	[thread overview]
Message-ID: <20051028204744.GC3849@nevyn.them.org> (raw)
In-Reply-To: <4354DBFF.7000601@st.com>

Please send patches, even RFC patches, to gdb-patches; I try to keep
code review off of gdb@.  Redirecting there.

On Tue, Oct 18, 2005 at 12:26:55PM +0100, Andrew STUBBS wrote:
> All have been regression tested for both i686-pc-linux-gnu and sh-elf an
> have produced no new failures. I have not attempted to produce any new
> test cases. Probably there should be some, but where and how?

They would be nice... but for this one in particular, I think it's not
worth the trouble.  It would require some TCL magic.

> Silent Batch Mode
> 
> 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.
> 
> The advantage of this is that I no longer have to create dodgy scripts
> to filter out all the various GDB messages from my program output
> (Loading section ..., Process exited successfully, etc.).
> 
> Obviously this is not particularly useful with targets such as the GDB
> simulator that give their output through the GDB print mechanisms.
> However, all targets which print via regular stdout (as our custom
> target interface here at ST does) work fine. Perhaps somebody could
> suggest a solution for those targets with which it does not work.

That sounds like just a new variant of the MI inferior-io-mixed-in
problem.  Perhaps it could share a solution.

In the mean time, along with the documentation that Eli has already
approved, this patch is OK; please wrap the one really long line the
texinfo, though.

> 2005-10-18  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.

OK.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

      parent reply	other threads:[~2005-10-28 20:47 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
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 [this message]

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=20051028204744.GC3849@nevyn.them.org \
    --to=drow@false.org \
    --cc=andrew.stubbs@st.com \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).