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:
rfm 2011-03-06 10:09:37 +00:00
parent 0424273b26
commit 5f29c70734
3 changed files with 5 additions and 1 deletions

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