diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-09-11 21:25:22 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-09-11 21:25:22 +0000 |
commit | 81aed931b6ebd1c6f70920b492676c514ea99d8b (patch) | |
tree | 0012f6401ae4bc45939a904bdaf1e18122531ca1 /lib/ubsan/ubsan_diag_standalone.cc | |
parent | 7aef370457fa3854ec64cf0da19b8cda5279b2cf (diff) |
[ubsan] Make ubsan version of __sanitizer_print_stack_trace consistent with other sanitizers
Summary: Other sanitizers include __sanitizer_print_stack_trace into stack trace.
Reviewers: eugenis, alekseyshl
Subscribers: llvm-commits, kubamracek
Differential Revision: https://reviews.llvm.org/D37657
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@312954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_diag_standalone.cc')
-rw-r--r-- | lib/ubsan/ubsan_diag_standalone.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ubsan/ubsan_diag_standalone.cc b/lib/ubsan/ubsan_diag_standalone.cc index df8ed5fcd..1f4a5bd40 100644 --- a/lib/ubsan/ubsan_diag_standalone.cc +++ b/lib/ubsan/ubsan_diag_standalone.cc @@ -26,9 +26,10 @@ void __sanitizer_print_stack_trace() { if (request_fast_unwind) __sanitizer::GetThreadStackTopAndBottom(false, &top, &bottom); - GET_REPORT_OPTIONS(false); + GET_CURRENT_PC_BP_SP; + (void)sp; BufferedStackTrace stack; - stack.Unwind(kStackTraceMax, Opts.pc, Opts.bp, nullptr, top, bottom, + stack.Unwind(kStackTraceMax, pc, bp, nullptr, top, bottom, request_fast_unwind); stack.Print(); } |