From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2186 invoked by alias); 3 Jun 2010 15:40:25 -0000 Received: (qmail 2177 invoked by uid 22791); 3 Jun 2010 15:40:24 -0000 X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Jun 2010 15:40:18 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o53FdtKo002262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 3 Jun 2010 11:39:55 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o53FdsNo010929; Thu, 3 Jun 2010 11:39:54 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o53FdqQu020635; Thu, 3 Jun 2010 11:39:53 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 9F4E53782DC; Thu, 3 Jun 2010 09:39:52 -0600 (MDT) From: Tom Tromey To: "Pierre Muller" Cc: "'Joel Brobecker'" , 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@redhat.com Date: Thu, 03 Jun 2010 15:40:00 -0000 In-Reply-To: <14482.3657036342$1275547225@news.gmane.org> (Pierre Muller's message of "Thu, 3 Jun 2010 08:39:49 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00101.txt.bz2 >>>>> "Pierre" == Pierre Muller 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