[distcc] distcc and gdb incompatibility (not mentioned in the manual)

Giles, Lezz lgiles at starentnetworks.com
Thu Feb 6 20:07:14 GMT 2003

When I normally compile a file it stores the pathname given to the compiler
and the current working directory - then if I'm debugging using gdb in
another directory, gdb is clever enough to combine these two to find the
source file.  The problem is that when we use distcc, the current directory
is always whereever the daemon was kicked off (normally /), and so gdb
cannot find source files automatically.

Of course, the workaround is to use dir to tell gdb where to find sources,
but this should be at least noted in the user manual.  I'm not sure if there's
any way to fix it to put in the correct path.

Lezz Giles

Lezz Giles
Starent Networks - +1.978.851.1176 

More information about the distcc mailing list