From: bmeurer@chromium.org Date: Mon, 15 Jul 2013 12:24:13 +0000 (+0000) Subject: Android lacks support for cxxabi.h. X-Git-Tag: upstream/4.7.83~13375 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b43e8f1e66ffdad29dbd0047a6d189737d03b27e;p=platform%2Fupstream%2Fv8.git Android lacks support for cxxabi.h. R=jkummerow@chromium.org Review URL: https://codereview.chromium.org/19153004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15666 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/platform-posix.h b/src/platform-posix.h index 79178fd..bcc2b7e 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 +#endif #include #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 {