OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // This file contains the default options for various compiler-based dynamic | 5 // This file contains the default options for various compiler-based dynamic |
6 // tools. | 6 // tools. |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(ADDRESS_SANITIZER) && defined(OS_MACOSX) | 10 #if defined(ADDRESS_SANITIZER) && defined(OS_MACOSX) |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 SANITIZER_HOOK_ATTRIBUTE const char *__lsan_default_suppressions() { | 171 SANITIZER_HOOK_ATTRIBUTE const char *__lsan_default_suppressions() { |
172 return kLSanDefaultSuppressions; | 172 return kLSanDefaultSuppressions; |
173 } | 173 } |
174 | 174 |
175 #endif // LEAK_SANITIZER | 175 #endif // LEAK_SANITIZER |
176 | 176 |
177 #if defined(UNDEFINED_SANITIZER) | 177 #if defined(UNDEFINED_SANITIZER) |
178 // Default options for UndefinedBehaviorSanitizer: | 178 // Default options for UndefinedBehaviorSanitizer: |
179 // print_stacktrace=1 - print the stacktrace when UBSan reports an error. | 179 // print_stacktrace=1 - print the stacktrace when UBSan reports an error. |
180 const char kUbsanDefaultOptions[] = "print_stacktrace=1"; | 180 const char kUbsanDefaultOptions[] = |
| 181 "print_stacktrace=1 strip_path_prefix=/../../ "; |
181 | 182 |
182 SANITIZER_HOOK_ATTRIBUTE const char* __ubsan_default_options() { | 183 SANITIZER_HOOK_ATTRIBUTE const char* __ubsan_default_options() { |
183 return kUbsanDefaultOptions; | 184 return kUbsanDefaultOptions; |
184 } | 185 } |
185 | 186 |
186 #endif // UNDEFINED_SANITIZER | 187 #endif // UNDEFINED_SANITIZER |
OLD | NEW |