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?