Fixup to get stacktrace working when built without debug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26985 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-10-29 06:19:17 +00:00
parent 3b2ffebb0c
commit 5a356f48f6
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2008-10-29 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSException.m: Fix stacktrace to be available when built
without DEBUG=YES. Check environment variable to activate/deactivate.
2008-10-28 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSString.m: Cope with loads of leading space in

View file

@ -818,12 +818,12 @@ _NSFoundationUncaughtExceptionHandler (NSException *exception)
{
_reserved = NSZoneCalloc([self zone], 2, sizeof(id));
}
#if defined(DEBUG)
if (_e_stack == nil)
if (_e_stack == nil
&& GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", YES) == NO)
{
ASSIGN(_e_stack, GSPrivateStackAddresses());
}
#endif
#ifdef _NATIVE_OBJC_EXCEPTIONS
@throw self;