mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-22 16:20:29 +01:00
Ensure tests pass on 32 bit x86.
This commit is contained in:
parent
3b9fd99cb7
commit
27d0dbfecb
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,7 @@ do_backtrace (void)
|
|||
unw_get_reg (&cursor, UNW_REG_IP, &ip);
|
||||
addresses[0][i] = (void *) ip;
|
||||
}
|
||||
while ((ret = unw_step (&cursor)) >= 0 && ++i < 128);
|
||||
while ((ret = unw_step (&cursor)) > 0 && ++i < 128);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -94,6 +94,7 @@ do_backtrace (void)
|
|||
printf ("FAILURE: unw_step() returned %d for ip=%lx\n", ret, (long) ip);
|
||||
++num_errors;
|
||||
}
|
||||
depth = i;
|
||||
}
|
||||
|
||||
if (verbose)
|
||||
|
|
Loading…
Reference in a new issue