Re: [collectd] Debugging on OSX

2015-12-07 Thread Demian Brecht

> On Dec 7, 2015, at 1:20 AM, Konstantin Tokarev  wrote:
> 
> Have you signed your gdb?

Yep, I have. Would be nice if it was something /that/ straightforward ;)

I can set breakpoints within collectd.c just fine, it's whenever I try to set 
one in a shared object that it fails.


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] Debugging on OSX

2015-12-07 Thread Konstantin Tokarev


07.12.2015, 10:42, "Demian Brecht" :
> 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
> 0x0001000771a0 0x00010007813d Yes /path/to/collectd/src/.libs/csv.so
> 0x00010007b580 0x000100080278 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

___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd