Fixup to get stacktrace working when built without debug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/stable@26984 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-10-29 06:18:29 +00:00
parent 0475830d3e
commit 35aac6a72e
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-29 Richard Frith-Macdonald <rfm@gnu.org>
* Source/HSString.m: Allow for leading whitespace when converting to

View file

@ -816,12 +816,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;