mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-25 22:52:17 +00:00
More stacktrace tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25689 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a92018afe3
commit
bd4c02376c
2 changed files with 30 additions and 14 deletions
|
@ -1110,7 +1110,8 @@ NSMutableArray *
|
|||
GSPrivateStackAddresses(void)
|
||||
{
|
||||
unsigned n = NSCountFrames();
|
||||
NSMutableArray *stack;
|
||||
NSMutableArray *stack = [NSMutableArray arrayWithCapacity: n];
|
||||
CREATE_AUTORELEASE_POOL(pool);
|
||||
unsigned i;
|
||||
jmp_buf *env;
|
||||
void (*old)(int);
|
||||
|
@ -1127,7 +1128,6 @@ GSPrivateStackAddresses(void)
|
|||
n--;
|
||||
}
|
||||
|
||||
stack = [NSMutableArray arrayWithCapacity: n];
|
||||
env = jbuf();
|
||||
if (setjmp(*env) == 0)
|
||||
{
|
||||
|
@ -1192,7 +1192,7 @@ GSPrivateStackAddresses(void)
|
|||
memcpy(&old, val, sizeof(old));
|
||||
signal(SIGSEGV, old);
|
||||
}
|
||||
|
||||
RELEASE(pool);
|
||||
return stack;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue