osx - LLDB - Exit on... exit? -
i'm writing script automate compile-run-debug procedure, cocoa/objective-c projects.
my lastly line of code :
lldb -f build/myapp.app -o "run"
which opens debugger, attaches process, , runs it.
however, when application exits, debugger stays open, waiting command.
any way create close well, 1 time attached process quits?
one way of doing utilize python bindings, , hear events lldb.
if run next script lunch app in debug mode, , if close app script finish :
http://www.opensource.apple.com/source/lldb/lldb-179.1/examples/python/process_events.py
other way perchance should work well:
run app, obtain pid of running app, start lldb , attach pid monitor if app running , if not kill lldb. osx bash cocoa debugging lldb
No comments:
Post a Comment