Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: src/base/debug/stack_trace_posix.cc

Issue 2292973002: Backtrace related symbols must be included for uclibc (Closed)
Patch Set: Guard demangle symbols with V8_LIBC_UCLIBC Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/debug/stack_trace_posix.cc
diff --git a/src/base/debug/stack_trace_posix.cc b/src/base/debug/stack_trace_posix.cc
index cbd722d35cda9e12a33898c912f4da4794148599..e25556e2becaddae7e1f510d3e32c135d4f164c3 100644
--- a/src/base/debug/stack_trace_posix.cc
+++ b/src/base/debug/stack_trace_posix.cc
@@ -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
@@ -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()) {
@@ -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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698