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 | 5fb52aa5917744abd46f4eade8e2b5c7e43d954b (patch) | |
tree | 05b1e09ce34e08002135a95af085e3d62f7d051f /libunwindstack/DwarfEhFrameWithHdr.cpp | |
parent | 6c6ba96a48c9b2e21d5f56cd027625050cd3e774 (diff) | |
download | unwinding-5fb52aa5917744abd46f4eade8e2b5c7e43d954b.tar.gz |
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 a131abe..9a49013 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; } |