This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compilation directories


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]