Fix stack trace on mac

main
Igor Canadi 10 years ago
parent 3e53760fc4
commit 108470e963
  1. 1
      Makefile
  2. 2
      port/stack_trace.cc

@ -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 \

@ -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];

Loading…
Cancel
Save