<div>
Hi,
</div><div><br></div><div>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:</div><div><br></div><div><div>echo -e "run\nthread apply all bt" > foo.gdb</div><div>gdb -batch -x foo.gdb my_process</div></div><div><br></div><div>Is something like this possible? I'd be willing to write some Python if needed.</div><div><br></div><div>-Greg</div><div><br></div>
<div></div>