mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Removed redundant call to _NSFoundationUncaughtExceptionHandler and added else blocks to allow a set uncaught exception handler to NOT exit if capable of recovering.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29511 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6c84f23ae1
commit
afbeacef8b
2 changed files with 14 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-02-08 Jonathan Gillaspie <jonathan.gillaspie@testplant.com>
|
||||
* Source/NSException.m
|
||||
* Removed redundant call to _NSFoundationUncaughtExceptionHandler and added else blocks
|
||||
to allow a set uncaught exception handler to NOT exit if capable of recovering.
|
||||
|
||||
2010-02-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSOperation.h:
|
||||
|
|
|
@ -774,7 +774,9 @@ callUncaughtHandler(id value)
|
|||
{
|
||||
(*_NSUncaughtExceptionHandler)(value);
|
||||
}
|
||||
_NSFoundationUncaughtExceptionHandler(value);
|
||||
else {
|
||||
_NSFoundationUncaughtExceptionHandler(value);
|
||||
}
|
||||
}
|
||||
|
||||
@implementation NSException
|
||||
|
@ -928,12 +930,13 @@ callUncaughtHandler(id value)
|
|||
* behavior of MacOS-X).
|
||||
* The standard handler is guaranteed to exit/abort.
|
||||
*/
|
||||
_NSFoundationUncaughtExceptionHandler(self);
|
||||
//_NSFoundationUncaughtExceptionHandler(self);
|
||||
}
|
||||
|
||||
thread->_exception_handler = handler->next;
|
||||
handler->exception = self;
|
||||
longjmp(handler->jumpState, 1);
|
||||
else {
|
||||
thread->_exception_handler = handler->next;
|
||||
handler->exception = self;
|
||||
longjmp(handler->jumpState, 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue