diff options
| author | Kostya Serebryany <kcc@google.com> | 2012-01-06 17:35:27 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2012-01-06 17:35:27 +0000 |
| commit | 417dfe7a162e2645589f14ed905bf4b8c0009c56 (patch) | |
| tree | 83ad358f3aaffb9517842f188f4fcdf15cd2cd2d | |
| parent | 224d8a74ae4087519f07479bb23de4a3ae53e24f (diff) | |
| download | bcm5719-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.html | 4 |
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 |

