summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-01-06 17:35:27 +0000
committerKostya Serebryany <kcc@google.com>2012-01-06 17:35:27 +0000
commit417dfe7a162e2645589f14ed905bf4b8c0009c56 (patch)
tree83ad358f3aaffb9517842f188f4fcdf15cd2cd2d
parent224d8a74ae4087519f07479bb23de4a3ae53e24f (diff)
downloadbcm5719-llvm-417dfe7a162e2645589f14ed905bf4b8c0009c56.tar.gz
bcm5719-llvm-417dfe7a162e2645589f14ed905bf4b8c0009c56.zip
[asan] mention -fno-omit-frame-pointer in the docs
llvm-svn: 147663
-rw-r--r--clang/docs/AddressSanitizer.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/docs/AddressSanitizer.html b/clang/docs/AddressSanitizer.html
index e6f7e990478..3b25f26feca 100644
--- a/clang/docs/AddressSanitizer.html
+++ b/clang/docs/AddressSanitizer.html
@@ -48,6 +48,8 @@ Follow the <a href="../get_started.html">clang build instructions</a>.
<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 @@ int main(int argc, char **argv) {
</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
OpenPOWER on IntegriCloud