Compilation directories

Daniel Jacobowitz drow@false.org
Wed Oct 6 02:59:00 GMT 2004


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



More information about the Gdb mailing list