This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFC: gdb_test_multiple
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: drow at mvista dot com
- Cc: ac131313 at redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Sun, 5 Jan 2003 11:44:47 -0600
- Subject: Re: RFC: gdb_test_multiple
> { } quoting in TCL completely disables expansion. Variables inside a
> "proc name { args } { vars $here } are not expanded until the procedure
> is called; similarly for the {} construct above.
Ah. Gotcha. I am thinking like #define, when I really need to think
like gnu make's "=" and ":=" (and sit down with the TCL book and really
learn the silly language).
> And that idiom is all over the testsuite, for readability
> purposes; see $hex, etc.
In fact I'm planning to use more of that idiom to incrementally build
up -re strings that for those troublesome ptype tests.
So I have to acquiesce to you -- whatever syntax you can get to work.
Michael C