Fix stack trace on mac

This commit is contained in:
Igor Canadi 2015-02-04 16:24:02 -08:00
parent 3e53760fc4
commit 108470e963
2 changed files with 1 additions and 2 deletions

View File

@ -111,7 +111,6 @@ VALGRIND_VER := $(join $(VALGRIND_VER),valgrind)
VALGRIND_OPTS = --error-exitcode=$(VALGRIND_ERROR) --leak-check=full
TESTS = \
db_test \
db_iter_test \
block_hash_index_test \
autovector_test \

View File

@ -78,7 +78,7 @@ void PrintStackTraceLine(const char* symbol, void* frame) {
// out source to atos, for the address translation
const int kLineMax = 256;
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");
if (f) {
char line[kLineMax];