[lldb-dev] lldb batch mode
ghazel at gmail.com
Fri Apr 20 22:55:47 PDT 2012
I'd like to run my process in lldb automatically, and print a backtrace if an error occurs but exit normally otherwise. This sort of thing can be achieved (sloppily) with gdb using something like this:
echo -e "run\nthread apply all bt" > foo.gdb
gdb -batch -x foo.gdb my_process
Is something like this possible? I'd be willing to write some Python if needed.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev