Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
Cc: "'Joel Brobecker'" <brobecker@adacore.com>, <gdb-patches@sourceware.org>
Subject: Re: [RFC] Testsuite: permit simple transformation of gdb_expect code
Date: Thu, 03 Jun 2010 15:40:00 -0000	[thread overview]
Message-ID: <m3fx1415x3.fsf@fleche.redhat.com> (raw)
In-Reply-To: <14482.3657036342$1275547225@news.gmane.org> (Pierre Muller's	message of "Thu, 3 Jun 2010 08:39:49 +0200")

>>>>> "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


  parent reply	other threads:[~2010-06-03 15:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 12:41 Pierre Muller
2010-06-02 21:29 ` Joel Brobecker
2010-06-03  6:40   ` Pierre Muller
     [not found]   ` <14482.3657036342$1275547225@news.gmane.org>
2010-06-03 15:40     ` Tom Tromey [this message]
2010-06-04  7:35       ` Pierre Muller
     [not found]       ` <12215.5377561741$1275636939@news.gmane.org>
2010-06-04 16:48         ` Tom Tromey

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=m3fx1415x3.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pierre.muller@ics-cnrs.unistra.fr \
    /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