1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-28 18:07:37 +01:00

x86_64: unbreak test-ptrace

If dwarf_get returns 0 (indicating the end of call chain), we should
not override the return value to 1. This may result in the caller
continuing to unwind and getting spurious errors.
This commit is contained in:
Arun Sharma 2012-05-16 07:49:30 -07:00
parent 1a6ea3da60
commit c9c5a40be1

View file

@ -209,7 +209,6 @@ unw_step (unw_cursor_t *cursor)
Debug (2, "returning %d\n", ret); Debug (2, "returning %d\n", ret);
return ret; return ret;
} }
ret = 1;
} }
else else
c->dwarf.ip = 0; c->dwarf.ip = 0;