android_system_core/libunwindstack/tests
Christopher Ferris 4ca98e18a4 Fix potential bad info in eh_frame_hdr.
Due to a bug, an elf can have FDEs with a length of zero, while still
having another FDE for the same pc with a non-zero length. The
eh_frame_hdr can sometimes point to the zero length FDE, but it should
have pointed to the non-zero length FDE. In order to fix this, if the
eh_frame_hdr points at the zero length FDE then try and find the real FDE
directly from eh_frame.

The change cleans up and removes unused variables from DwarfEhFrameWithHdr
and changes the objects so that all of the DwarfSection objects and
DwarfEhFrameWithHdr object inherit from the same class.

Add new unit tests to verify this functionality.

Bug: 142483624

Test: Unit tests all pass.
Change-Id: I128a916e3ba378931de7d44ee15e57e24d4073df
2019-10-29 18:39:30 -07:00
..
files Fix handling of PT_GNU_EH_FRAME. 2019-10-21 19:11:22 -07:00
ArmExidxDecodeTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
ArmExidxExtractTest.cpp
DexFileData.h
DexFileTest.cpp
DexFilesTest.cpp
DwarfCfaLogTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfCfaTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfDebugFrameTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfEhFrameTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfEhFrameWithHdrTest.cpp Fix potential bad info in eh_frame_hdr. 2019-10-29 18:39:30 -07:00
DwarfMemoryTest.cpp
DwarfOpLogTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfOpTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
DwarfSectionImplTest.cpp Handle when bias is different in elf headers. 2019-10-08 17:36:06 +00:00
DwarfSectionTest.cpp Replace MOCK_METHODN with MOCK_METHOD macro. 2019-10-11 14:30:18 -07:00
ElfCacheTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
ElfFake.cpp
ElfFake.h Handle when bias is different in elf headers. 2019-10-08 17:36:06 +00:00
ElfInterfaceArmTest.cpp
ElfInterfaceTest.cpp Fix handling of PT_GNU_EH_FRAME. 2019-10-21 19:11:22 -07:00
ElfTest.cpp Replace MOCK_METHODN with MOCK_METHOD macro. 2019-10-11 14:30:18 -07:00
ElfTestUtils.cpp
ElfTestUtils.h
GenGnuDebugdata.cpp
IsolatedSettings.cpp Move to isolated testing. 2019-07-17 18:08:32 -07:00
JitDebugTest.cpp
LocalUnwinderTest.cpp Add test mapping to run the libunwind tests. 2019-09-03 13:32:51 -07:00
LocalUpdatableMapsTest.cpp Fix LocalUpdatableMaps 2019-09-16 18:28:38 -07:00
LogFake.cpp
LogFake.h
MapInfoCreateMemoryTest.cpp Move to isolated testing. 2019-07-17 18:08:32 -07:00
MapInfoGetBuildIDTest.cpp
MapInfoGetElfTest.cpp
MapInfoGetLoadBiasTest.cpp Handle when bias is different in elf headers. 2019-10-08 17:36:06 +00:00
MapInfoTest.cpp Handle when bias is different in elf headers. 2019-10-08 17:36:06 +00:00
MapsTest.cpp
MemoryBufferTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryCacheTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryFake.cpp
MemoryFake.h
MemoryFileTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryLocalTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryOfflineBufferTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
MemoryOfflineTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryRangeTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryRangesTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryRemoteTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
MemoryTest.cpp
RegsFake.h
RegsInfoTest.cpp
RegsIterateTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
RegsStepIfSignalHandlerTest.cpp
RegsTest.cpp
SymbolsTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
TestLocal.cpp
TestUtils.cpp
TestUtils.h
UnwindOfflineTest.cpp Fix handling of PT_GNU_EH_FRAME. 2019-10-21 19:11:22 -07:00
UnwindTest.cpp Internalize subclasses of Memory 2019-06-11 12:09:18 -07:00
UnwinderTest.cpp Switch case to suite to follow new gtest naming. 2019-06-20 16:18:57 -07:00
VerifyBionicTerminationTest.cpp Add test of undefined return address. 2019-08-30 23:29:34 -07:00