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
This commit is contained in:
parent
0599225187
commit
b43e8f1e66
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user