summaryrefslogtreecommitdiffstats
path: root/libunwindstack/RegsX86_64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libunwindstack/RegsX86_64.cpp')
-rw-r--r--libunwindstack/RegsX86_64.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/libunwindstack/RegsX86_64.cpp b/libunwindstack/RegsX86_64.cpp
index 0f66943aa..3175a90c2 100644
--- a/libunwindstack/RegsX86_64.cpp
+++ b/libunwindstack/RegsX86_64.cpp
@@ -35,16 +35,11 @@ ArchEnum RegsX86_64::Arch() {
return ARCH_X86_64;
}
-uint64_t RegsX86_64::GetAdjustedPc(uint64_t rel_pc, Elf* elf) {
- if (!elf->valid()) {
- return rel_pc;
- }
-
- if (rel_pc == 0) {
+uint64_t RegsX86_64::GetPcAdjustment(uint64_t rel_pc, Elf* elf) {
+ if (!elf->valid() || rel_pc == 0) {
return 0;
}
-
- return rel_pc - 1;
+ return 1;
}
void RegsX86_64::SetFromRaw() {