summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/DwarfDebugFrameTest.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-11-03 14:50:27 -0700
committerChristopher Ferris <cferris@google.com>2017-11-07 13:22:39 -0800
commitc9dee84d81e4672dee5dd08890c904d1ab841e56 (patch)
treeb71dfd2d4adf1041b6420cef62492494d00e864c /libunwindstack/tests/DwarfDebugFrameTest.cpp
parent1e0b9672defa3504915741c8d4cec3cc73f89568 (diff)
Add support for only a .eh_frame.
Static executables only have a .eh_frame section and no .eh_frame_hdr section. Add support for this by rearranging the class hierarchy and creating a DwarfEhFrameWithHdr class and a DwarfEhFrame class to handle the different cases. Add new unit tests for DwarfEhFrame and for the new functionality. Bug: 68820189 Test: Passes new unit tests, unwinds static executables. Change-Id: I63d7cb8c52a686e96579a2266e18c0d06bbb6e63
Diffstat (limited to 'libunwindstack/tests/DwarfDebugFrameTest.cpp')
-rw-r--r--libunwindstack/tests/DwarfDebugFrameTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwindstack/tests/DwarfDebugFrameTest.cpp b/libunwindstack/tests/DwarfDebugFrameTest.cpp
index 90baabedc..07204bcec 100644
--- a/libunwindstack/tests/DwarfDebugFrameTest.cpp
+++ b/libunwindstack/tests/DwarfDebugFrameTest.cpp
@@ -35,8 +35,8 @@ class MockDwarfDebugFrame : public DwarfDebugFrame<TypeParam> {
~MockDwarfDebugFrame() = default;
void TestSetFdeCount(uint64_t count) { this->fde_count_ = count; }
- void TestSetOffset(uint64_t offset) { this->offset_ = offset; }
- void TestSetEndOffset(uint64_t offset) { this->end_offset_ = offset; }
+ void TestSetOffset(uint64_t offset) { this->entries_offset_ = offset; }
+ void TestSetEndOffset(uint64_t offset) { this->entries_end_ = offset; }
void TestPushFdeInfo(const typename DwarfDebugFrame<TypeParam>::FdeInfo& info) {
this->fdes_.push_back(info);
}