[cfe-commits] r147663 - /cfe/trunk/docs/AddressSanitizer.html

Kostya Serebryany kcc at google.com
Fri Jan 6 09:35:27 PST 2012


Author: kcc
Date: Fri Jan  6 11:35:27 2012
New Revision: 147663

URL: http://llvm.org/viewvc/llvm-project?rev=147663&view=rev
Log:
[asan] mention -fno-omit-frame-pointer in the docs

Modified:
    cfe/trunk/docs/AddressSanitizer.html

Modified: cfe/trunk/docs/AddressSanitizer.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/AddressSanitizer.html?rev=147663&r1=147662&r2=147663&view=diff
==============================================================================
--- cfe/trunk/docs/AddressSanitizer.html (original)
+++ cfe/trunk/docs/AddressSanitizer.html Fri Jan  6 11:35:27 2012
@@ -48,6 +48,8 @@
 <h2 id="intro">Usage</h2>
 Simply compile and link your program with <tt>-faddress-sanitizer</tt> flag. <BR>
 To get a reasonable performance add <tt>-O1</tt> or higher. <BR>
+To get nicer stack traces in error messages add
+<tt>-fno-omit-frame-pointer</tt>. <BR>
 
 <pre>
 % cat example_UseAfterFree.cc
@@ -59,7 +61,7 @@
 </pre>
 
 <pre>
-% clang -O1 -g -faddress-sanitizer example_UseAfterFree.cc
+% clang -O1 -g -faddress-sanitizer -fno-omit-frame-pointer example_UseAfterFree.cc
 </pre>
 
 If a bug is detected, the program will print an error message to stderr and exit with a





More information about the cfe-commits mailing list