[lldb-dev] sharing code between lldb and AddressSanitizer

Kostya Serebryany kcc at google.com
Wed Nov 30 17:42:00 PST 2011


>
>
> So if 0x402661 is an address that is already in terms of the virtual
> addresses in the a.out file itself, you can use example code from main.cpp
> mentioned below.
>
> You could compile the main.cpp into "loopup" and run the result:
>
> lookup /home/kcc/llvm/build/a.out 0x402661
>
> And it should do the lookup you want.


Yes, this is what we already get from addr2line.
Can this be used inside the process?
And can it translate real address to the offset in the library (currently,
we use code from google perf tools to achieve that).
Will this work on both linux and mac?

Thanks,

--kcc



> Let me know if you have any questions about how and what the example code
> in main.cpp is doing.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20111130/28e6dae5/attachment.html>


More information about the lldb-dev mailing list