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

x86_64: support for RIP in unw_get_save_loc (#66)

Returns the location of RIP through unw_get_save_loc().
This commit is contained in:
laiwei-rice 2018-03-06 16:04:45 +00:00 committed by Dave Watson
parent 05d814b640
commit 7f04c2032f

View file

@ -44,6 +44,7 @@ unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc)
case UNW_X86_64_R13: loc = c->dwarf.loc[R13]; break;
case UNW_X86_64_R14: loc = c->dwarf.loc[R14]; break;
case UNW_X86_64_R15: loc = c->dwarf.loc[R15]; break;
case UNW_X86_64_RIP: loc = c->dwarf.loc[RIP]; break;
default:
break;