From db928a240b2aab94b31d15f89564c4064c1f0285 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Sat, 18 Feb 2012 00:51:35 +0000 Subject: [PATCH] Mac: Fix back trace to work under OS > 10.5 svn path=/trunk/boinc/; revision=25287 --- lib/mac/mac_backtrace.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/mac/mac_backtrace.cpp b/lib/mac/mac_backtrace.cpp index 31b692b525..943306e7e5 100644 --- a/lib/mac/mac_backtrace.cpp +++ b/lib/mac/mac_backtrace.cpp @@ -156,7 +156,7 @@ void PrintBacktrace(void) { err = QCRCreateFromSelf(&crRef); - if (OSMinorVersion >= '5') { + if (OSMinorVersion == '5') { #ifdef __ppc__ fputs("BOINC backtrace under OS 10.5.x only shows exported (global) symbols\n", stderr); fputs("and may work poorly on a PowerPC Mac after a crash. For a better\n", stderr); @@ -166,6 +166,9 @@ void PrintBacktrace(void) { fputs("and may not show the final location which caused a crash. For a better\n", stderr); fputs("backtrace, either run under OS 10.4.x or run under OS 10.6.x or later.\n\n", stderr); #endif + } + + if (OSMinorVersion >= '5') { // Use new backtrace functions if available (only in OS 10.5 and later) systemlib = dlopen ("/usr/lib/libSystem.dylib", RTLD_NOW ); if (systemlib) {