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'
1: name = 'malloc', locations = 1
1.1: where = libsystem_c.dylib`malloc, address = 0x000000000002db7e, unresolved, hit count = 0
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?