Commit b43e8f1e authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

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
parent 05992251
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment