From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9864 invoked by alias); 6 Oct 2004 02:18:43 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9856 invoked from network); 6 Oct 2004 02:18:42 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 6 Oct 2004 02:18:42 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CF1O4-000076-Vq; Tue, 05 Oct 2004 22:18:41 -0400 Date: Wed, 06 Oct 2004 02:59:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: =?iso-8859-1?Q?Jos=E9?= Miguel , gdb@sources.redhat.com Subject: Re: Compilation directories Message-ID: <20041006021840.GA310@nevyn.them.org> Mail-Followup-To: Andrew Cagney , =?iso-8859-1?Q?Jos=E9?= Miguel , gdb@sources.redhat.com References: <200410051258.40098.jmiguelbenitez@supercable.es> <41635102.6010405@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41635102.6010405@gnu.org> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-10/txt/msg00108.txt.bz2 On Tue, Oct 05, 2004 at 09:57:22PM -0400, Andrew Cagney wrote: > >Hi, friends! > > > >My name is Jose Miguel and I am trying to get the value of cdir. I mean, > >if I type > > > >show directories > > > >I get > > > >Source directories searched: $cdir:$cwd > > > >but, I cannot find out the way to get the values of those directories. The > >print command doesn't seem to work. Any idea? > >Thank you indeed. > > I just hit the same problem: > (gdb) print $cdir > $1 = void > doesn't help. Anyone? There is no way to do it. $cdir isn't a convenience variable, because there's no way for convenience variables to represent strings today. It's just text substitution in the source path searching. -- Daniel Jacobowitz