mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Bugfix for getting stacktrace
This commit is contained in:
parent
b2f821bb36
commit
437df42b87
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2018-03-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSException.m: Fix second argument to backtrace()
|
||||
|
||||
2018-03-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSException.m: Use pthread mutexes directly to avoid
|
||||
|
|
|
@ -921,7 +921,7 @@ NSReturnAddress(NSUInteger offset)
|
|||
#if HAVE_BACKTRACE
|
||||
void *addr[MAXFRAMES*sizeof(void*)];
|
||||
|
||||
numReturns = backtrace(addr, MAXFRAMES*sizeof(void*));
|
||||
numReturns = backtrace(addr, MAXFRAMES);
|
||||
if (numReturns > 0)
|
||||
{
|
||||
returns = malloc(numReturns * sizeof(void*));
|
||||
|
|
Loading…
Reference in a new issue