[distcc] debugging objects compiled with distcc

Martin Pool mbp at samba.org
Sat Apr 26 00:15:49 GMT 2003


On 24 Apr 2003, Cristian Tibirna <ctibirna at giref.ulaval.ca> wrote:
> 
> Hello
> 
> When I try to debug with gdb an executable compiled with distcc, gdb doesn't 
> find the source of the object to be debugged, unless that source is in the 
> directory from which I start gdb.

Unfortunately this is caused by a bug in gcc, which I hope will be
fixed in a future release.  gcc embeds the directory where the
compiler (cc1) was run, when it really ought to record the directory
the source came from.

You can work around it for now by using the "directory" command in gdb
to tell it where to find the source, or by passing an absolute file
name when compiling.

Tim Janik has an unofficial patch for distcc which works around this
but I think I won't merge it because it's better to fix it in gcc.

  http://www.gtk.org/~timj/patches/

Regards,
--
Martin


More information about the distcc mailing list