15 void *addr[kMaxBacktrace];
16 int num_addr = backtrace(addr, kMaxBacktrace);
17 char **symbols = backtrace_symbols(addr, num_addr);
18 for (
int i = 0; i < num_addr; ++i)
19 result += std::string(symbols[i]) +
"\n";
static std::string GetStacktrace()