x86_64: support for RIP in unw_get_save_loc
Returns the location of RIP through unw_get_save_loc().
@@ -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;
