Issue |
143084
|
Summary |
[lldb] Is there a way to communicate base address through JIT debug interface?
|
Labels |
new issue
|
Assignees |
|
Reporter |
denizsokmen
|
I load in-memory ELF DSOs using a custom mechanism rather than system dlopen. At the moment, I use JIT debugger interface to communicate its existence with the debugger. But I noticed that the interface works with absolute addresses, so I had to modify the in-memory copy of the image to point the section entries and symtab members at absolute addresses as they are encoded for PIC. It seems to work fine so far with symbols and backtraces. However, source level debugging isn't there, which is presumably due to DWARF info also working with relative addresses in PIC. But I feel like at this point, providing a base address of where the image is to lldb would save me from "relocating" the entire image one by one. My questions are
1) Is there such a thing?
2) Is using JIT interface the right approach to begin with? (essentially I am looking for an in-memory alternative to `target modules load --file xxx .text yyy` , in an automated way)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs