[collectd] Add debug symbols to compiled collectd binary

Christopher Fitzner chrisfitzner at gmail.com
Tue Jan 28 10:33:38 CET 2014


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.

thanks,

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20140128/bcc7e5bc/attachment-0001.html>


More information about the collectd mailing list