| Index: base/debug/stack_trace_posix.cc
|
| diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc
|
| index fc3ee14c7b9d60958ad6d6000d94cbc616b6c7df..b3c0fd1b5659c6e3d0870bca708cb803835fdb3d 100644
|
| --- a/base/debug/stack_trace_posix.cc
|
| +++ b/base/debug/stack_trace_posix.cc
|
| @@ -66,7 +66,7 @@ const char kSymbolCharacters[] =
|
| "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
|
| #endif // !defined(USE_SYMBOLIZE) && defined(__GLIBCXX__)
|
|
|
| -#if !defined(USE_SYMBOLIZE)
|
| +#if !defined(__UCLIBC__) && !defined(USE_SYMBOLIZE)
|
| // Demangles C++ symbols in the given text. Example:
|
| //
|
| // "out/Debug/base_unittests(_ZN10StackTraceC1Ev+0x20) [0x817778c]"
|
| @@ -76,7 +76,7 @@ void DemangleSymbols(std::string* text) {
|
| // Note: code in this function is NOT async-signal safe (std::string uses
|
| // malloc internally).
|
|
|
| -#if defined(__GLIBCXX__) && !defined(__UCLIBC__)
|
| +#if defined(__GLIBCXX__)
|
|
|
| std::string::size_type search_from = 0;
|
| while (search_from < text->size()) {
|
| @@ -113,9 +113,11 @@ void DemangleSymbols(std::string* text) {
|
| }
|
| }
|
|
|
| -#endif // defined(__GLIBCXX__) && !defined(__UCLIBC__)
|
| +#else // defined(__GLIBCXX__)
|
| + (void)text; // Avoid an unused warning.
|
| +#endif // defined(__GLIBCXX__)
|
| }
|
| -#endif // !defined(USE_SYMBOLIZE)
|
| +#endif // !defined(__UCLIBC__) && !defined(USE_SYMBOLIZE)
|
|
|
| class BacktraceOutputHandler {
|
| public:
|
|
|