mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
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:
parent
0475830d3e
commit
35aac6a72e
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-29 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/HSString.m: Allow for leading whitespace when converting to
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue