android_system_core/libunwindstack/tests
Christopher Ferris c3d79f7c07 Fix incorrect usage of relative pcs.
When stepping, it's necessary to use both the unaltered relative pc
and the adjusted relative pc. If the adjusted pc is not used, the
wrong unwind information can be used.

Added new offline unit tests that take real data and verifies that it
unwinds properly.

Fix a bug in the map code that would not properly parse map data for
a 64 bit process when done in a 32 bit process.

Fix bug in eh_frame processing that didn't adjust the pc correctly.
Fix unit tests related to the pc adjustment.

Bug: 69475565

Test: Passes libbacktrace/libunwindstack unit tests.
Test: Run debuggerd -b on processes on a hikey.
Change-Id: Ic501a1c4549c5f61d2742a7105c42a960f2c892b
2017-11-29 16:10:08 -08:00
..
files Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
ArmExidxDecodeTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
ArmExidxExtractTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfCfaLogTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfCfaTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfDebugFrameTest.cpp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfEhFrameTest.cpp Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
DwarfEhFrameWithHdrTest.cpp Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
DwarfMemoryTest.cpp Fix another set of bugs. 2017-08-10 17:37:32 -07:00
DwarfOpLogTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfOpTest.cpp Update the Unwinder object and add tests. 2017-10-04 14:40:14 -07:00
DwarfSectionImplTest.cpp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfSectionTest.cpp Add a new unwind method on error. 2017-09-22 16:55:12 -07:00
ElfFake.cpp Multiple bugfixes, small restructuring. 2017-10-20 11:15:32 -07:00
ElfFake.h Multiple bugfixes, small restructuring. 2017-10-20 11:15:32 -07:00
ElfInterfaceArmTest.cpp If the pc is set to zero, the unwind is done. 2017-10-23 14:55:16 -07:00
ElfInterfaceTest.cpp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
ElfTest.cpp Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
ElfTestUtils.cpp Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
ElfTestUtils.h Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
GenGnuDebugdata.cpp Add .gnu_debugdata support. 2017-06-28 15:23:10 -07:00
LogFake.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
LogFake.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MapInfoCreateMemoryTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
MapInfoGetElfTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
MapsTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
MemoryBufferTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryFake.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryFake.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryFileTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryLocalTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryRangeTest.cpp Add a method to share the process memory object. 2017-09-05 14:30:22 -07:00
MemoryRemoteTest.cpp Fix UnwindTest repeatability. 2017-09-06 17:08:44 -07:00
MemoryTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
RegsFake.h libunwindstack: add method to iterate across registers. 2017-10-20 13:52:56 -07:00
RegsIterateTest.cpp libunwindstack: add method to iterate across registers. 2017-10-20 13:52:56 -07:00
RegsStepIfSignalHandlerTest.cpp Speed up StepIfSignalHandler path. 2017-07-19 21:35:46 +00:00
RegsTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
SymbolsTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
TestUtils.h Fix UnwindTest repeatability. 2017-09-06 17:08:44 -07:00
UnwinderTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
UnwindOfflineTest.cpp Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
UnwindTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00