mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Use fprintf rather than NSLog to avoid any recursive exception problems
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
964f95934c
commit
d8179c6a5e
1 changed files with 7 additions and 7 deletions
|
@ -369,7 +369,7 @@ _NSAddHandler (NSHandler* handler)
|
|||
if (thread->_exception_handler
|
||||
&& IsBadReadPtr(thread->_exception_handler, sizeof(NSHandler)))
|
||||
{
|
||||
NSLog(@"ERROR: Current exception handler is bogus.");
|
||||
fprintf(stderr, "ERROR: Current exception handler is bogus.");
|
||||
}
|
||||
#endif
|
||||
handler->next = thread->_exception_handler;
|
||||
|
@ -385,21 +385,21 @@ _NSRemoveHandler (NSHandler* handler)
|
|||
#if defined(DEBUG)
|
||||
if (thread->_exception_handler != handler)
|
||||
{
|
||||
NSLog(@"ERROR: Removing exception handler that is not on the top "
|
||||
@"of the stack. (You probably called return in an NS_DURING block.)");
|
||||
fprintf(stderr, "ERROR: Removing exception handler that is not on top "
|
||||
"of the stack. (You probably called return in an NS_DURING block.)");
|
||||
}
|
||||
#if defined(__WIN32__)
|
||||
if (IsBadReadPtr(handler, sizeof(NSHandler)))
|
||||
{
|
||||
NSLog(@"ERROR: Could not remove exception handler, "
|
||||
@"handler is bad pointer.");
|
||||
fprintf(stderr, "ERROR: Could not remove exception handler, "
|
||||
"handler is bad pointer.");
|
||||
thread->_exception_handler = 0;
|
||||
return;
|
||||
}
|
||||
if (handler->next && IsBadReadPtr(handler->next, sizeof(NSHandler)))
|
||||
{
|
||||
NSLog(@"ERROR: Could not restore exception handler, "
|
||||
@"handler->next is bad pointer.");
|
||||
fprintf(stderr, "ERROR: Could not restore exception handler, "
|
||||
"handler->next is bad pointer.");
|
||||
thread->_exception_handler = 0;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue