This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC/A] testsuite/gdb.c++/ref-types.exp "cleanup"
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [RFC/A] testsuite/gdb.c++/ref-types.exp "cleanup"
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Fri, 19 Oct 2001 11:29:39 -0700 (PDT)
- cc: <gdb-patches at sources dot redhat dot com>
On Fri, 19 Oct 2001, Andrew Cagney wrote:
> > +set pattern {.[0-9]* = \(short (int)? &\) @}
> > +append pattern "$hex: -1"
>
> Is there another way of doing this bit? I'm finding it more confusing
> then all the escape characters?
Well, there is, but I don't think anyone would like it any better:
gdb_test {print foo} [format {%s %s} {.[0-9]* = \(short( int?) &\)} "@$hex: -1"] \
{print foo test}
This is a common tcl thing to do, but, well, I'm not sure it's any better
for, how did someone put it? "beginners". (IMO, the "beginner" thing is a
cop out.)
Well, whatever. Let me know, and I will make any appropriate change
requested. Or I'll drop the whole thing and submit my additions without
the "cleanup".
Keith