Mac: Fix new backtrace code for x86_64 Client and project applications

svn path=/trunk/boinc/; revision=15023
This commit is contained in:
Charlie Fenton 2008-04-07 08:00:38 +00:00
parent 89538db7c4
commit e949c3cd41
2 changed files with 2 additions and 8 deletions

View File

@ -3125,8 +3125,8 @@ David April 5 2008
parse.h parse.h
procinfo_unix.C procinfo_unix.C
Charlie April 4 2008 Charlie April 7 2008
Mac: Fix new backtrace code for x86_64 Client and project applcations. Mac: Fix new backtrace code for x86_64 Client and project applications.
lib/ lib/
mac/ mac/

View File

@ -90,7 +90,6 @@ void PrintBacktrace(void) {
QCrashReportRef crRef = NULL; QCrashReportRef crRef = NULL;
char nameBuf[256], pathToThisProcess[1024], pipeBuf[1024]; char nameBuf[256], pathToThisProcess[1024], pipeBuf[1024];
int pathLen;
const NXArchInfo *localArch; const NXArchInfo *localArch;
char OSMinorVersion; char OSMinorVersion;
time_t t; time_t t;
@ -167,11 +166,6 @@ void PrintBacktrace(void) {
} }
setenv("NSUnbufferedIO", "YES", 1); setenv("NSUnbufferedIO", "YES", 1);
// pathLen = readlink(pathToThisProcess, pathToThisProcess, sizeof(pathToThisProcess));
// if (pathLen >= 0) { // readlink() returns -1 if not a aymbolic link
// pathToThisProcess[pathLen] = '\0';
// }
// For some reason, using the -p option with the value from getpid() // For some reason, using the -p option with the value from getpid()
// fails here but the -o option with a path does work. // fails here but the -o option with a path does work.
#ifdef __x86_64__ #ifdef __x86_64__