[collectd] Debugging on OSX
Konstantin Tokarev
annulen at yandex.ru
Mon Dec 7 10:20:51 CET 2015
07.12.2015, 10:42, "Demian Brecht" <demianbrecht at gmail.com>:
> 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?
Have you signed your gdb?
https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html
man 1 codesign
--
Regards,
Konstantin
More information about the collectd
mailing list