From: Daniel Jacobowitz <dan@codesourcery.com>
To: Uri Moszkowicz <uri@4refs.com>
Cc: gdb@sourceware.org
Subject: Re: Wrapping GDB
Date: Fri, 15 Apr 2011 20:53:00 -0000 [thread overview]
Message-ID: <20110415205255.GA6464@caradoc.them.org> (raw)
In-Reply-To: <BANLkTi=ztW2Zi8gv0fBcf6GtR0KqMCKK0g@mail.gmail.com>
On Fri, Apr 15, 2011 at 04:36:46PM -0400, Uri Moszkowicz wrote:
> Hi,
> I'm trying to use GDB to write some tests for a C++ program and am
> having some trouble. The wrapper test is written in Groovy and it
> seems that GDB does not send its output to stdout so that it can be
> captured from a system call. Instead, it appears directly on the tty.
> I realize that there is a machine interface but I don't want to use it
> since the interaction has to be human readable for debugging when
> tests fail. Since my test runs on the Java platform I am unable to
> create a pseudo TTY for GDB. Expect seems to work but I don't want to
> write my tests in Expect and no comparable implementation exists for
> the Java platform. Do you have any suggestions? Is there an
> undocumented switch that I can use so that GDB will send all of its
> output to STDOUT/STDERR?
I suggest you use the machine interface (MI) anyway. It's human
readable and it's much easier to script this way.
--
Daniel Jacobowitz
Mentor Graphics
prev parent reply other threads:[~2011-04-15 20:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-15 20:37 Uri Moszkowicz
2011-04-15 20:53 ` 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=20110415205255.GA6464@caradoc.them.org \
--to=dan@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=uri@4refs.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).