From: "EBo" <ebo@sandien.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: using gdb to do embedded unit/regression testing
Date: Thu, 06 Nov 2008 17:23:00 -0000 [thread overview]
Message-ID: <twig.1225992147.9035@swcp.com> (raw)
In-Reply-To: <e394668d0811060913o4cc81c8egfbeddad50252695d@mail.gmail.com>
Doug Evans <dje@google.com> said:
> On Mon, Nov 3, 2008 at 12:05 PM, EBo <ebo@sandien.com> wrote:
> > EBo <ebo@sandien.com> said:
> >
> >> Michael Snyder <msnyder@vmware.com> said:
> >>
> >> > EBo wrote:
> >> >
> >> > > The second issue will be cleaning up and formatting the output from the
> >> > > automated unit/regression test suites. For this I will want/need to
> > suppress
> >> > > almost all output from gdb, and use the print command above to deal
with the
> >> > > formatting. If I end up using gdb to help do this type of eXtreme/Agile
> >> > > program testing I would like to work with the gdb maintainers to have it
> >> > > integrated upstream...
> >> >
> >> > I think you want dejagnu.
> >
> > I will look into dejagnu, but to follow in the original thought...
> >
> > If I provided a --batch-mostly-silent switch which suppressed output for all
> > but the print, printf, and echo commands, would others find that useful?
> > Actually I should also if someone already provides this functionality before I
> > start trying to modify gdb ;-)
>
> The new python support may/will provide the ability to redefine
> existing commands. One can then imagine writing a wrapper that for
> the duration of the wrapper set stdout to /dev/null (figuratively
> speaking), and inserted wrappers for a collection of commands (print,
> printf, echo in your case) that for their duration set stdout ==
> /dev/stdout (figuratively speaking).
>
> It may require a bit more support from the python/gdb interface than
> is currently there (e.g. ability to get/set the values of
> gdb_{stdout,stderr,stdlog}) , but that will be the norm for awhile.
I talked to one of my colleagues and they do not want to go the way of dejagnu
for the current project. Also I spent quiet awhile trying to implement the
full functionality of --mostly-quiet (which boils down to if'ing out all the
trace statements but not the print* and echo output). I was never able to
find where some of the line and break/trace output was generated. For I am
tracking down a REALLY weird bug which implies that the version of the
cross-compiler I am running is generating bad code. I have to focus on
sorting that out first.
EBo --
prev parent reply other threads:[~2008-11-06 17:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-03 19:11 EBo
2008-11-03 19:21 ` Daniel Jacobowitz
2008-11-03 20:02 ` EBo
2008-11-03 19:26 ` Michael Snyder
2008-11-03 19:50 ` EBo
2008-11-03 20:06 ` EBo
2008-11-06 17:14 ` Doug Evans
2008-11-06 17:23 ` EBo [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=twig.1225992147.9035@swcp.com \
--to=ebo@sandien.com \
--cc=gdb@sourceware.org \
/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