diff options
author | Kamil Rytarowski <n54@gmx.com> | 2018-10-30 08:51:34 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2018-10-30 08:51:34 +0000 |
commit | 07269f84de94c122c155eb2d333421b374d81b2b (patch) | |
tree | 4be2ee98195a4dae090090957c181ef2164d1eca | |
parent | 390bcd25ca1c04f808b484f77fe3ce9885737fd1 (diff) | |
download | compiler-rt-07269f84de94c122c155eb2d333421b374d81b2b.tar.gz |
Handle pthread_sigmask in DemangleFunctionName()
Translate __libc_thr_sigsetmask to pthread_sigmask on NetBSD.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@345574 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/sanitizer_stacktrace_printer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_stacktrace_printer.cc b/lib/sanitizer_common/sanitizer_stacktrace_printer.cc index ac0731d46..f2b337433 100644 --- a/lib/sanitizer_common/sanitizer_stacktrace_printer.cc +++ b/lib/sanitizer_common/sanitizer_stacktrace_printer.cc @@ -98,6 +98,8 @@ static const char *DemangleFunctionName(const char *function) { return "pthread_equal"; if (!internal_strcmp(function, "__libc_thr_curcpu")) return "pthread_curcpu_np"; + if (!internal_strcmp(function, "__libc_thr_sigsetmask")) + return "pthread_sigmask"; #endif return function; |