How to redirect LLI output?

Hey.

How can i redirect lli output (fprintf, cout) to get it as variable or make my callback executed?

I’ve reviewed /tools/lli/lli.cpp and as far as i understand the code
is executed by ExecutionEngine which is built by EngineBuilder. Can EE be configured somehow for this?

Regards, Anton.

No. You would have to do it manually with pipe, dup, etc, and I expect it would be very tricky.