Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "EBo" <ebo@sandien.com>
To: "Michael Snyder" <msnyder@vmware.com>,
	"ebo@sandien.com" <ebo@sandien.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: using gdb to do embedded unit/regression testing
Date: Mon, 03 Nov 2008 19:50:00 -0000	[thread overview]
Message-ID: <twig.1225741771.58340@swcp.com> (raw)
In-Reply-To: <490F4EAB.206@vmware.com>

Michael Snyder <msnyder@vmware.com> said:

> EBo wrote:
>
> You should check out src/gcc/testsuite.  The gcc testsuites on
> embedded targets are all set up to use gdb as an execution engine.

Thanks for the pointer.  It'll take me awhile to crawl through the testsuites
and absorb them...

> And you get to use dejagnu as your scripting language (lucky you).

The last time I took a serious look at dejagnu, which was YEARS ago, it seemed
so incomprehensible that I gave up.  I'll take another look into it.  Thanks
for the pointer.

> > ...to malloc?...
> 
> Yeah, we've all run into that.
> 
> Use gdb "echo", rather than print.
>
> Doesn't help if you have variables, but for simple diagnostics it's ok.

That did the trick.  Thanks!

> > 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.

Thanks, I'll start digging into it...

  EBo --





  reply	other threads:[~2008-11-03 19:50 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 [this message]
2008-11-03 20:06     ` EBo
2008-11-06 17:14       ` Doug Evans
2008-11-06 17:23         ` EBo

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.1225741771.58340@swcp.com \
    --to=ebo@sandien.com \
    --cc=gdb@sourceware.org \
    --cc=msnyder@vmware.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