|
|
@ -78,7 +78,7 @@ void PrintStackTraceLine(const char* symbol, void* frame) { |
|
|
|
// out source to atos, for the address translation
|
|
|
|
// out source to atos, for the address translation
|
|
|
|
const int kLineMax = 256; |
|
|
|
const int kLineMax = 256; |
|
|
|
char cmd[kLineMax]; |
|
|
|
char cmd[kLineMax]; |
|
|
|
snprintf(cmd, kLineMax, "xcrun atos -d %p -p %d 2>&1", frame, pid); |
|
|
|
snprintf(cmd, kLineMax, "xcrun atos %p -p %d 2>&1", frame, pid); |
|
|
|
auto f = popen(cmd, "r"); |
|
|
|
auto f = popen(cmd, "r"); |
|
|
|
if (f) { |
|
|
|
if (f) { |
|
|
|
char line[kLineMax]; |
|
|
|
char line[kLineMax]; |
|
|
|