summaryrefslogtreecommitdiffstats
path: root/libunwindstack/DwarfEhFrameWithHdr.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2018-02-09 15:57:39 -0800
committerChristopher Ferris <cferris@google.com>2018-02-10 17:11:23 -0800
commite37e2d05b1ae3f844750b76d3b71278b79d5de51 (patch)
tree8828b7da33798376c03a4285b2130d374272b843 /libunwindstack/DwarfEhFrameWithHdr.cpp
parentbac72c884f3ae08aa26c62cc94d165c198accd64 (diff)
downloadsystem_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.cpp2
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;
}