[lldb-dev] Is sudo needed to run an lldb debug build (on Mac OS X)

Jim Ingham jingham at apple.com
Thu Oct 4 16:17:07 PDT 2012


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" <daniel.malea at intel.com> 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
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev




More information about the lldb-dev mailing list