1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-18 07:41:44 +02:00

Ensure tests pass on 32 bit x86.

This commit is contained in:
Arun Sharma 2011-03-25 14:34:41 -07:00
parent 3b9fd99cb7
commit 27d0dbfecb

View file

@ -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)