1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-25 08:37:38 +01:00

x86_64: stop unwinding when %rbp location is NULL

This commit is contained in:
Konstantin Belousov 2012-09-17 17:39:14 +03:00 committed by Arun Sharma
parent e891591bcb
commit d0cbc51955

View file

@ -198,6 +198,12 @@ unw_step (unw_cursor_t *cursor)
c->dwarf.ret_addr_column = RIP;
if (DWARF_IS_NULL_LOC (c->dwarf.loc[RBP]))
{
ret = 0;
Debug (2, "NULL %rbp loc, returning %d\n", ret);
return ret;
}
if (!DWARF_IS_NULL_LOC (c->dwarf.loc[RIP]))
{
ret = dwarf_get (&c->dwarf, c->dwarf.loc[RIP], &c->dwarf.ip);