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:
parent
e891591bcb
commit
d0cbc51955
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue