Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* using gdb to do embedded unit/regression testing
@ 2008-11-03 19:11 EBo
  2008-11-03 19:21 ` Daniel Jacobowitz
  2008-11-03 19:26 ` Michael Snyder
  0 siblings, 2 replies; 8+ messages in thread
From: EBo @ 2008-11-03 19:11 UTC (permalink / raw)
  To: gdb; +Cc: John David


Hello,

I have a simple proof of concept which does simple live inplace
unit/regression testing on embedded hardware via a JTAG interface.  To really
make gdb work for this context I will either have to use "More complex GDB
scripting" and/or modify gdb's command line interface and print command.

The current issue at hand is that `print "STRING"` only works if the program
is running AND gdb can interface with malloc.  On the embedded project which I
am currently testing this idea out, malloc is not available and the print
command returns an error.  What I was trying to do is simply write some
diagnostic comments to help orient myself when reading the output from gdb
which was piped to a file.  If there is some other way to write diagnostic
strings to stdout other than `print "STRING"` which does not require some call
to malloc?  If so please let me know.  I have not seen anything like this in
the documentation yet.

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

Is this the best venue to open discussion for such modifications?

Best regards, 


  EBo --


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-11-06 17:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-03 19:11 using gdb to do embedded unit/regression testing 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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox