[Lldb-commits] [PATCH] change asan info msg to use debugger output stream instead of adding to module warning collection

Jason Molenda jmolenda at apple.com
Mon Dec 8 17:24:28 PST 2014


Hi kubabrecka,

When lldb loads a binary that was built -fsanitize=address, it prints an info message via the Module's warning printer; it looks like

warning: (x86_64h) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/lib/darwin/libclang_rt.asan_osx_dynamic.dylib AddressSanitizer debugger support is active. Memory error breakpoint has been installed and you can now use the 'memory history' command.

Instead, I think we should grab the debugger's output stream and print the message there without the warning/arch/module name.  Like

AddressSanitizer debugger support is active. Memory error breakpoint has been installed and you can now use the 'memory history' command.

http://reviews.llvm.org/D6577

Files:
  source/Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6577.17065.patch
Type: text/x-patch
Size: 2961 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141209/a42eabeb/attachment.bin>


More information about the lldb-commits mailing list