崩溃捕获信息打印函数名

This commit is contained in:
xiongziliang 2020-05-08 21:59:49 +08:00
parent 3252f131ad
commit d8e5dbb5b8

View File

@ -52,7 +52,7 @@ string System::execute(const string &cmd) {
#if !defined(ANDROID) && !defined(_WIN32) #if !defined(ANDROID) && !defined(_WIN32)
static string addr2line(const string &address) { static string addr2line(const string &address) {
string cmd = StrPrinter << "addr2line -e " << exePath() << " " << address; string cmd = StrPrinter << "addr2line -C -f -e " << exePath() << " " << address;
return System::execute(cmd); return System::execute(cmd);
} }