This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Testsuite: permit simple transformation of gdb_expect code
- From: Tom Tromey <tromey at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: "'Joel Brobecker'" <brobecker at adacore dot com>, <gdb-patches at sourceware dot org>
- Date: Thu, 03 Jun 2010 09:39:52 -0600
- Subject: Re: [RFC] Testsuite: permit simple transformation of gdb_expect code
- References: <000001cb0250$e4034590$ac09d0b0$@muller@ics-cnrs.unistra.fr> <20100602212929.GX3019@adacore.com> <14482.3657036342$1275547225@news.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> I thought about it, but I still didn't really
Pierre> understand all the tcl command details:
Pierre> info exists VAR_NAME
Pierre> will return 1 if VAR_NAME exists
Pierre> as either a global or a local variable,
Pierre> but it seems that
Pierre> info proc PROC_NAME
Pierre> works as a regular expression,
They both work using a glob-like syntax, not regular expressions...
Pierre> and can thus return a list containing both PROC_NAME and
Pierre> PROC_NAME_VERSION_2 procedures ...
... so this happens only if you do "info proc PROC_NAME*".
Pierre> I am still not very skilled in tcl in general:
Pierre> does
Pierre> global VAR;
Pierre> already create that variable?
Pierre> or does it just say that that name VAR should be looked up
Pierre> in global namespace?
The latter.
Pierre> I am still so new to tcl that I didn't even
Pierre> try it out, out of fear that I would not really
Pierre> correctly interpret the results I see!
:-)
Tom