Hi,

I am working on a target that will not support JIT, however I want to support function calling from expressions.

I have managed to get this working by adding a CALL instruction interpreter to IRInterpreter.cpp where a CALL instruction executes a ThreadPlanCallFunction. I have function arguments handled correctly, however getting back the
return value has been tricky.

ThreadPlanCallFunction expects a ClangASTType (describing the return type) which is passed to the ABI which actually extracts it. Since the functions I want to call have not been JIT compiled I have no clang context to reference.

It seems this could be useful for other targets that don't support JIT too so I would like to find a clean way to implement this that I can submit it upstream. Can anyone point me towards a clean approach?

Thanks,
Aidan
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to