3 ms·
LLDB does JIT your expression via Clang, and then either interprets it locally or executes it in the target, and you can execute arbitrary commands - for exampl
by emaste 12y ago
LLDB does JIT your expression via Clang, and then either interprets it locally or executes it in the target, and you can execute arbitrary commands - for example:
(lldb) expr for (int i=1; i<5; i++) { printf("%d\n", i * i); }
1
4
9
16
It does still fail if the appropriate constructors, templated object instantiations, etc. aren't in the target, as you point out.
- cottonseed 12y agoOh, very nice. That's clearly the right architecture. It still fails on a lot of things for me (including your above example and the std::cout example, although variants work), which I'm guessing (hoping?) is just a lack of maturity. Looking forward to see how it progresses.