diff options
author | Christopher Ferris <cferris@google.com> | 2018-02-09 15:57:39 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2018-02-10 17:11:23 -0800 |
commit | e37e2d05b1ae3f844750b76d3b71278b79d5de51 (patch) | |
tree | 8828b7da33798376c03a4285b2130d374272b843 /libunwindstack/DwarfEhFrameWithHdr.cpp | |
parent | bac72c884f3ae08aa26c62cc94d165c198accd64 (diff) | |
download | system_core-e37e2d05b1ae3f844750b76d3b71278b79d5de51.tar.gz system_core-e37e2d05b1ae3f844750b76d3b71278b79d5de51.tar.bz2 system_core-e37e2d05b1ae3f844750b76d3b71278b79d5de51.zip |
Fix off by 4 error handling eh_frame hdr.
- Add a new tool that can dump the register information given a pc.
- Add a new offline unwinder test that fails without this change.
- Update unit tests.
- Refactor offline unwind tests to make it easier to add tests.
Bug: 73048324
Test: Passes new unit tests.
Test: Passes libbacktrace unit tests.
Test: Ran debuggerd -b on random processes.
Change-Id: If6c70a044299505c2274ae6888b35bf9ac34b74b
Diffstat (limited to 'libunwindstack/DwarfEhFrameWithHdr.cpp')
-rw-r--r-- | libunwindstack/DwarfEhFrameWithHdr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwindstack/DwarfEhFrameWithHdr.cpp b/libunwindstack/DwarfEhFrameWithHdr.cpp index a131abea2..9a4901344 100644 --- a/libunwindstack/DwarfEhFrameWithHdr.cpp +++ b/libunwindstack/DwarfEhFrameWithHdr.cpp @@ -109,7 +109,7 @@ DwarfEhFrameWithHdr<AddressType>::GetFdeInfoFromIndex(size_t index) { fde_info_.erase(index); return nullptr; } - info->pc = value + 4; + info->pc = value; return info; } |