return address tweak

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32471 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-03-06 10:09:37 +00:00
parent f3fca57168
commit 98c91159d9
3 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,7 @@
2011-03-06 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSThread.m: remove obsolete call to objc_set_thread_callback().
* Source/NSDebug.m: Try to improve getting return addresses from stack.
2011-03-05 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -626,8 +626,10 @@ typedef NSUInteger NSStringEncodingConversionOptions;
- (NSString*) stringByExpandingTildeInPath;
/**
* First calls -stringByExpandingTildeInPath if necessary.<br />
* Replaces path string by one in which path components representing symbolic
* links have been replaced by their referents.<br />
* Removes a leading '/private' if the result is valid.<br />
* If links cannot be resolved, returns an unmodified copy of the receiver.
*/
- (NSString*) stringByResolvingSymlinksInPath;

View file

@ -836,7 +836,8 @@ GSDebugAllocationListRecordedObjects(Class c)
#define _NS_FRAME_HACK(a) \
case a: env->addr = __builtin_frame_address(a + 1); break;
#define _NS_RETURN_HACK(a) \
case a: env->addr = __builtin_return_address(a + 1); break;
case a: env->addr = (_NS_FRAME_HACK(a) ? __builtin_extract_return_address \
(__builtin_return_address(a + 1)) : 0); break;
/*
* The following horrible signal handling code is a workaround for the fact