[LLVMdev] Cannot debug objects added with "-extra-object" in lli.

Radek Zagorowicz radek.zagorowicz at gmail.com
Thu Nov 20 06:41:47 PST 2014


Hi guys.

I found a little bug in implementation of MCJIT.
I noticed that when I added object file (with all needed debug information)
to lli by using -extra-object flag, it's impossible to debug it with gdb.
Object file is in ELF format generated by llc. It is properly loaded by
mcjit.
I noticed that the reason is probably in lack of calling
"registerWithDebugger()" after object loading.
Adding this registration to the addObjectFile function body causes crash in
runtime, probably because the Buffer member in loaded ObjectImage is null.
Am I right?
Do you have any idea how it can be fixed without reimplementation od
loading objects in RuntimeDyld?

Regards.
rodia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141120/c8913485/attachment.html>


More information about the llvm-dev mailing list