[collectd] Debugging on OSX

Demian Brecht demianbrecht at gmail.com
Mon Dec 7 08:38:42 CET 2015

Hi all,

I'm attempting to debug the unixsock plugin using gdb on OSX Yosemite. I've configured --enable-debug and when listing shared modules I get:

(gdb) info shared
From                To                  Syms Read   Shared Object Library
0x00000001000771a0  0x000000010007813d  Yes         /path/to/collectd/src/.libs/csv.so
0x000000010007b580  0x0000000100080278  Yes         /path/to/collectd/src/.libs/unixsock.so

However, when I try to set a breakpoint in unixsock.c, I get:

(gdb) b us_init
Cannot access memory at address 0x1350

What am I missing? Is this something whack about debugging on OSX or am I missing something obvious?


GPG Fingerprint: 9530 B4AF 551B F3CD A45C  476C D4E5 662D DB97 69E3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20151206/7e4495de/attachment.sig>

More information about the collectd mailing list