mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
cfa4cf97bc
commit
5bcd0557dd
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue