From 108470e96338be109de4fc0fccf2a80e684712d6 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Wed, 4 Feb 2015 16:24:02 -0800 Subject: [PATCH] Fix stack trace on mac --- Makefile | 1 - port/stack_trace.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 215ecb8a7..2ecf5f9f4 100644 --- a/Makefile +++ b/Makefile @@ -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 \ diff --git a/port/stack_trace.cc b/port/stack_trace.cc index 224cac700..b2075b9a9 100644 --- a/port/stack_trace.cc +++ b/port/stack_trace.cc @@ -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];