Skip to content

Commit

Permalink
uclibc now has support for backtrace and demangle functions
Browse files Browse the repository at this point in the history
BUG=

Review-Url: https://codereview.chromium.org/2292973002
Cr-Commit-Position: refs/heads/master@{#39263}
  • Loading branch information
landell authored and Commit bot committed Sep 8, 2016
1 parent 91ed540 commit 26c5b8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/base/debug/stack_trace_posix.cc
Expand Up @@ -25,7 +25,7 @@
#include <string>
#include <vector>

#if V8_LIBC_GLIBC || V8_OS_BSD
#if V8_LIBC_GLIBC || V8_OS_BSD || V8_LIBC_UCLIBC
#include <cxxabi.h>
#include <execinfo.h>
#endif
Expand Down Expand Up @@ -77,7 +77,7 @@ void DemangleSymbols(std::string* text) {
// Note: code in this function is NOT async-signal safe (std::string uses
// malloc internally).

#if V8_LIBC_GLIBC || V8_OS_BSD
#if V8_LIBC_GLIBC || V8_OS_BSD || V8_LIBC_UCLIBC

std::string::size_type search_from = 0;
while (search_from < text->size()) {
Expand Down Expand Up @@ -114,7 +114,7 @@ void DemangleSymbols(std::string* text) {
}
}

#endif // V8_LIBC_GLIBC || V8_OS_BSD
#endif // V8_LIBC_GLIBC || V8_OS_BSD || V8_LIBC_UCLIBC
}

class BacktraceOutputHandler {
Expand Down

0 comments on commit 26c5b8f

Please sign in to comment.