From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: RFC: Additional testsuite alternative
Date: Thu, 26 Sep 2002 13:57:00 -0000 [thread overview]
Message-ID: <20020926205716.GA3911@nevyn.them.org> (raw)
In-Reply-To: <3D937279.7060304@redhat.com>
On Thu, Sep 26, 2002 at 04:47:53PM -0400, Andrew Cagney wrote:
>
> >Source file two.cc:
> >===
> >struct OneStruct {
> > int simple;
> >};
> >struct OneStruct StrOne;
> >const struct OneStruct *ConstStrOnePtr;
> >
> >int FunctionWithPtrs (const struct OneStruct *one, const int *two)
> >{
> > return 0;
> >}
> >
> >int
> >main ()
> >{
> > return 0;
> >}
>
> The nice thing about GCC's framework is that it is a single C file. Is
> the same possible here? Comments would indicate where to set
> breakpoints and what values to print.
>
> The test then involves running the program, and for each breakpoint,
> printing and checking the output.
I thought about it and decided it wasn't worthwhile. That works on
GCC: You run GCC, you get output based on particular lines. GDB has a
source and then a session. So I have two files; one is source, the
other is the session.
> (How would this .x file handle regular expressions? That is the one
> thing I never figured out with the GCC framework.)
It just works :) It's a little awkward for complex expressions but
works just fine for the simple cases I needed it for. The response to
a #test directive is a regex.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2002-09-26 20:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-16 12:25 Daniel Jacobowitz
2002-09-26 11:21 ` Daniel Jacobowitz
2002-09-26 12:51 ` David Carlton
2002-09-26 13:22 ` Fernando Nasser
2002-09-26 13:25 ` Daniel Jacobowitz
2002-09-26 14:05 ` Jim Blandy
2002-09-26 14:09 ` Daniel Jacobowitz
2002-09-26 13:47 ` Andrew Cagney
2002-09-26 13:57 ` 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=20020926205716.GA3911@nevyn.them.org \
--to=drow@mvista.com \
--cc=ac131313@redhat.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