[collectd] Add debug symbols to compiled collectd binary

Marc Fournier marc.fournier at camptocamp.com
Thu Feb 6 17:21:42 CET 2014


Excerpts from Christopher Fitzner's message of 2014-01-28 10:33:38 +0100:
> Hey,
> 
> can anyone give me any tips on compiling the collectd binary with debug
> symbols and then use gdb to load it for plugin debugging?  I've run the
> configure script with these options: CFLAGS="-g -O0" as suggested on the
> homepage but when I try to run the compiled binary It looks like some of
> the data is in .libs/collectdS.o which is deleted near the end of the make
> process.
> 
> Messing around I made a copy of the file before it was deleted to load up
> however even with that file I'm having trouble get gdb to stop anywhere
> useful to me.  I try to set a break point at one of my functions and it
> says theres no function with that name.

Doesn't "./configure --enable-debug [...]" do the job ?

Marc



More information about the collectd mailing list