[lldb-dev] lldb batch mode
Greg Hazel
ghazel at gmail.com
Fri Apr 20 22:55:47 PDT 2012
Hi,
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.
-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20120420/5ca1c7e5/attachment.html>
More information about the lldb-dev
mailing list