Build with non-fragile ivars.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29715 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-02-24 10:23:47 +00:00
parent d26e836e7b
commit 48070cb1ca
16 changed files with 8036 additions and 7966 deletions

View file

@ -26,6 +26,7 @@
#import "common.h"
#define EXPOSE_NSException_IVARS 1
#define EXPOSE_NSThread_IVARS 1
#import "GSPrivate.h"
#import "Foundation/NSBundle.h"
#import "Foundation/NSEnumerator.h"
@ -57,8 +58,6 @@ static NSUncaughtExceptionHandler *_NSUncaughtExceptionHandler = 0;
#define _e_info (((id*)_reserved)[0])
#define _e_stack (((id*)_reserved)[1])
typedef struct { @defs(NSThread) } *TInfo;
/* This is the GNU name for the CTOR list */
@interface GSStackTrace : NSObject
@ -895,7 +894,7 @@ callUncaughtHandler(id value)
- (void) raise
{
#ifndef _NATIVE_OBJC_EXCEPTIONS
TInfo thread;
NSThread *thread;
NSHandler *handler;
#endif
@ -908,7 +907,7 @@ callUncaughtHandler(id value)
#ifdef _NATIVE_OBJC_EXCEPTIONS
@throw self;
#else
thread = (TInfo)GSCurrentThread();
thread = GSCurrentThread();
handler = thread->_exception_handler;
if (handler == NULL)
{
@ -1083,9 +1082,9 @@ callUncaughtHandler(id value)
void
_NSAddHandler (NSHandler* handler)
{
TInfo thread;
NSThread *thread;
thread = (TInfo)GSCurrentThread();
thread = GSCurrentThread();
#if defined(__MINGW32__) && defined(DEBUG)
if (thread->_exception_handler
&& IsBadReadPtr(thread->_exception_handler, sizeof(NSHandler)))
@ -1100,9 +1099,9 @@ _NSAddHandler (NSHandler* handler)
void
_NSRemoveHandler (NSHandler* handler)
{
TInfo thread;
NSThread *thread;
thread = (TInfo)GSCurrentThread();
thread = GSCurrentThread();
#if defined(DEBUG)
if (thread->_exception_handler != handler)
{