Hello, <div><br></div><div>I am working on integrating AddressSanitizer (aka asan, <a href="http://clang.llvm.org/docs/AddressSanitizer.html">http://clang.llvm.org/docs/AddressSanitizer.html</a>) run-time library with the llvm compiler-rt. </div>
<div>Asan needs to symbolize PCs, i.e. given a value of a PC it needs to produce the file name and the line number (if debug info is present). </div><div>Currently, this is achieved by printing the PCs as /path/to/object/file+offset and filtering the output with a script which uses addr2line/atos. </div>
<div>Ideally, symbolization should happen inside the process and should not require post processing. </div><div><br></div><div>I would expect that lldb already has such functionality, right? </div><div>Somewhere in include/lldb/Symbol/Symtab.h?</div>
<div>Does it work on both Linux and Mac? </div><div>Do you think that it is possible/desirable to have this kind of code sharing between lldb and asan? </div><div>Will that work with the current build system (where lldb and compiler-rt/lib/asan are separate subprojects)?</div>
<div><br></div><div>Thanks, </div><div><br></div><div>--kcc </div>