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

Unified Diff: src/platform-posix.h

Issue 19179003: Merged r15666 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | src/version.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-posix.h
diff --git a/src/platform-posix.h b/src/platform-posix.h
index 79178fd9a7f0e1d3bf8a2c869c30a6e8b750496c..bcc2b7e74e4263430d7438b0b7d555fc0107da80 100644
--- a/src/platform-posix.h
+++ b/src/platform-posix.h
@@ -28,7 +28,9 @@
#ifndef V8_PLATFORM_POSIX_H_
#define V8_PLATFORM_POSIX_H_
+#if !defined(ANDROID)
#include <cxxabi.h>
+#endif
#include <stdio.h>
#include "platform.h"
@@ -58,10 +60,12 @@ struct POSIXBacktraceHelper {
fprintf(stderr, "%2d: ", i);
char mangled[201];
if (sscanf(symbols[i], "%*[^(]%*[(]%200[^)+]", mangled) == 1) {// NOLINT
+ char* demangled = NULL;
+#if !defined(ANDROID)
int status;
size_t length;
- char* demangled = abi::__cxa_demangle(
- mangled, NULL, &length, &status);
+ demangled = abi::__cxa_demangle(mangled, NULL, &length, &status);
+#endif
fprintf(stderr, "%s\n", demangled != NULL ? demangled : mangled);
free(demangled);
} else {
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698