You need to follow the instructions in docs/code-signing.txt to get a debugger 
that can debug w/o sudo on Mac OS X.

Jim

On Oct 4, 2012, at 4:13 PM, "Malea, Daniel" <[email protected]> wrote:

> Hi all,
> 
> I recently tried building and running lldb on Mac OS X (10.8) and I noticed 
> the following error with the process_events.py example:
> 
> python ../examples/python/process_events.py --breakpoint malloc 
> --stop-command bt --stop-command 'register read' -- /bin/ls -lAF 
> /tmp/Creating a target for '/bin/ls'
> Current breakpoints:
> 1: name = 'malloc', locations = 1
>  1.1: where = libsystem_c.dylib`malloc, address = 0x000000000002db7e, 
> unresolved, hit count = 0
> 
> 
> Launching "/bin/ls"...
> error: failed to get the task for process 49480
> 
> 
> However, if I run the above with 'sudo', everything works as expected :) On 
> Linux though, the above works fine without sudo.
> 
> Is sudo really needed or am I doing something wrong here?
> 
> 
> Thanks,
> Dan
> 
> _______________________________________________
> lldb-dev mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to