[distcc] Re: gcc: installation problem, cannot exec `as'

Martin Pool mbp at samba.org
Tue May 13 01:43:47 GMT 2003

On 12 May 2003, Dimitri PAPADOPOULOS-ORFANOS <papadopo at shfj.DECOY.cea.NOSPAM.fr> wrote:
> Which would be the easiest way to debug distccd? I'm going to run it 
> with the --verbose option flag, but I would typically need to dump the 
> value of PATH and other similar info. Should I attach the debugger to a 
> running distccd process on one of the machines?

The easiest way to debug it is generally to run gdb on a non-forking,
non-detaching process:

  $ gdb ./distccd
  (gdb) break somewhere
  (gdb) run --daemon --no-fork --no-detach --verbose --log-stderr

Then point a client at it and off you go.  This is much easier than
trying to catch a child after it forks, and you can examine most of
the code this way.

More information about the distcc mailing list