From 643e8fefe747493724a3e676f764c1c2cd94541a Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 5 Dec 2007 22:51:01 +0000 Subject: [PATCH] Monotone-Parent: 473e23aa8952f82b8ef8ebcb95fd3ad46226c3be Monotone-Revision: 9cebda7de52e1ba413335a38215dc3c20a3b925f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-12-05T22:51:01 Monotone-Branch: ca.inverse.sogo --- Main/GNUmakefile | 4 ++-- Main/NSException+Stacktrace.m | 36 +++++++++++++++++------------------ 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/Main/GNUmakefile b/Main/GNUmakefile index ab489728b..ee03e21ea 100644 --- a/Main/GNUmakefile +++ b/Main/GNUmakefile @@ -6,7 +6,7 @@ include ../Version include ./Version ADDITIONAL_INCLUDE_DIRS += -I../SOPE/ -D_GNU_SOURCE -ADDITIONAL_LIB_DIRS += -L../SOPE/GDLContentStore/obj/ -lbfd +ADDITIONAL_LIB_DIRS += -L../SOPE/GDLContentStore/obj/ SOGOD = sogod-$(MAJOR_VERSION).$(MINOR_VERSION) TOOL_NAME = $(SOGOD) @@ -17,7 +17,7 @@ all:: $(SOGOD)_OBJC_FILES += \ sogod.m \ - NSException+Stacktrace.m\ +# NSException+Stacktrace.m\ SOGo.m \ SOGoProductLoader.m \ build.m diff --git a/Main/NSException+Stacktrace.m b/Main/NSException+Stacktrace.m index c08bc21ac..8fac8800e 100644 --- a/Main/NSException+Stacktrace.m +++ b/Main/NSException+Stacktrace.m @@ -77,7 +77,7 @@ _NSFoundationUncaughtExceptionHandler (NSException *exception) // // -#define STACKSYMBOLS 1 +// #define STACKSYMBOLS 1 @interface GSStackTrace : NSObject { @@ -94,7 +94,7 @@ _NSFoundationUncaughtExceptionHandler (NSException *exception) @end -#ifdef STACKSYMBOLS +// #ifdef STACKSYMBOLS // GSStackTrace inspired by FYStackTrace.m // created by Wim Oudshoorn on Mon 11-Apr-2006 @@ -467,7 +467,7 @@ GSLoadModule(NSString *fileName) return module; } -#endif /* STACKSYMBOLS */ +// #endif /* STACKSYMBOLS */ // @@ -749,14 +749,12 @@ GSListModules() + (GSStackTrace*) currentStack { - return [[[GSStackTrace alloc] init] autorelease]; + return [[GSStackTrace new] autorelease]; } - (oneway void) dealloc { [frames release]; - frames = nil; - [super dealloc]; } @@ -794,11 +792,11 @@ GSListModules() // grab the current stack - (id) init { -#if defined(STACKSYMBOLS) +// #if defined(STACKSYMBOLS) int i; int n; - frames = [[NSMutableArray alloc] init]; + frames = [NSMutableArray new]; n = NSCountFrames(); for (i = 0; i < n; i++) @@ -860,20 +858,20 @@ GSListModules() } [frames addObject: aFrame]; } -#else - int i; - int n; +// #else +// int i; +// int n; - frames = [[NSMutableArray alloc] init]; - n = NSCountFrames(); +// frames = [NSMutableArray new]; +// n = NSCountFrames(); - for (i = 0; i < n; i++) - { - void *address = NSReturnAddress(i); +// for (i = 0; i < n; i++) +// { +// void *address = NSReturnAddress(i); - [frames addObject: [NSString stringWithFormat: @"%p", address]]; - } -#endif +// [frames addObject: [NSString stringWithFormat: @"%p", address]]; +// } +// #endif return self; }