1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-21 23:27:39 +01:00

tests/Gtest-trace.c: show differing addresses

This commit is contained in:
Andreas Schwab 2015-03-19 16:10:16 +01:00 committed by Arun Sharma
parent 0bed10aa21
commit 544cdb3b43

View file

@ -123,7 +123,7 @@ do_backtrace (void)
if (labs((unw_word_t) addresses[1][i] - (unw_word_t) addresses[2][i]) > 1) if (labs((unw_word_t) addresses[1][i] - (unw_word_t) addresses[2][i]) > 1)
{ {
printf ("FAILURE: backtrace() and unw_backtrace() addresses differ at %d: %p vs. %p\n", printf ("FAILURE: backtrace() and unw_backtrace() addresses differ at %d: %p vs. %p\n",
i, addresses[1][n], addresses[2][n]); i, addresses[1][i], addresses[2][i]);
++num_errors; ++num_errors;
} }
@ -133,7 +133,7 @@ do_backtrace (void)
if (labs((unw_word_t) addresses[0][i] - (unw_word_t) addresses[1][i]) > 1) if (labs((unw_word_t) addresses[0][i] - (unw_word_t) addresses[1][i]) > 1)
{ {
printf ("FAILURE: unw_step() loop and backtrace() addresses differ at %d: %p vs. %p\n", printf ("FAILURE: unw_step() loop and backtrace() addresses differ at %d: %p vs. %p\n",
i, addresses[0][n], addresses[1][n]); i, addresses[0][i], addresses[1][i]);
++num_errors; ++num_errors;
} }
} }