diff options
author | laiwei-rice <lai.wei@rice.edu> | 2018-03-06 16:04:45 +0000 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2018-03-06 08:04:45 -0800 |
commit | 7f04c2032f1a2328072f3a3733abf74a72188458 (patch) | |
tree | a757d280e98cf384000bb94ad5b7ba0be796e112 | |
parent | 05d814b64036b1ea2f0f328b3a985b03559dcf10 (diff) | |
download | libunwind-7f04c2032f1a2328072f3a3733abf74a72188458.tar.gz |
x86_64: support for RIP in unw_get_save_loc (#66)
Returns the location of RIP through unw_get_save_loc().
-rw-r--r-- | src/x86_64/Gget_save_loc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/x86_64/Gget_save_loc.c b/src/x86_64/Gget_save_loc.c index 0057c62d..40568700 100644 --- a/src/x86_64/Gget_save_loc.c +++ b/src/x86_64/Gget_save_loc.c @@ -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; |