diff options
author | Peter Collingbourne <pcc@google.com> | 2020-03-19 17:27:58 -0700 |
---|---|---|
committer | Peter Collingbourne <pcc@google.com> | 2020-03-19 17:51:20 -0700 |
commit | 3243937fe91d04f4a54ffacf0490fab1e4b625d8 (patch) | |
tree | c20b11d6b45558e2f61599101afa1192034446b5 /libunwindstack/RegsX86.cpp | |
parent | ca73d38ec7b08d4f253064dc96bec139eccb8cef (diff) | |
download | unwinding-3243937fe91d04f4a54ffacf0490fab1e4b625d8.tar.gz |
Make GetPcAdjustment a free function.
We're now using it in contexts that don't have all of the registers available,
such as GWP-ASan and soon MTE, so it doesn't make sense to have it be a
member function of Regs.
Bug: 135772972
Change-Id: I18b104ea0adb78588d7e475d0624cefc701ba52c
Diffstat (limited to 'libunwindstack/RegsX86.cpp')
-rw-r--r-- | libunwindstack/RegsX86.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libunwindstack/RegsX86.cpp b/libunwindstack/RegsX86.cpp index 5538fc0..4d3c246 100644 --- a/libunwindstack/RegsX86.cpp +++ b/libunwindstack/RegsX86.cpp @@ -50,13 +50,6 @@ void RegsX86::set_sp(uint64_t sp) { regs_[X86_REG_SP] = static_cast<uint32_t>(sp); } -uint64_t RegsX86::GetPcAdjustment(uint64_t rel_pc, Elf*) { - if (rel_pc == 0) { - return 0; - } - return 1; -} - bool RegsX86::SetPcFromReturnAddress(Memory* process_memory) { // Attempt to get the return address from the top of the stack. uint32_t new_pc; |