platform_system_core/libunwindstack/tests
Christopher Ferris b9de87f7ed Add a new unwind method on error.
If a function crashes by jumping into unexecutable code, the old method
could not unwind through that. Add a fallback method to set the pc from
the default return address location.

In addition, add a new finished check for steps. This will provide a method
to indicate that this step is the last step. This prevents cases where
the fallback method might be triggered incorrectly.

Update the libbacktrace code to unwind using the new methodology.

Update the unwind tool to use the new unwind methodology.

Add a new option to crasher that calls through a null function.

Create a new object, Unwinder, that encapsulates the a basic unwind. For now,
libbacktrace will still use the custom code.

Added new unit tests to cover the new cases. Also add a test that
crashes calling a nullptr as a function, and then has call frames in
the signal stack.

Bug: 65842173

Test: Pass all unit tests, verify crasher dumps properly.
Change-Id: Ia18430ab107e9f7bdf0e14a9b74710b1280bd7f4
2017-09-22 16:55:12 -07:00
..
files Init .gnu_debugdata in GetElf(). 2017-06-30 17:24:58 -07: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 Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfEhFrameTest.cpp Fix another set of bugs. 2017-08-10 17:37:32 -07: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 Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfSectionImplTest.cpp Add a new unwind method on error. 2017-09-22 16:55:12 -07:00
DwarfSectionTest.cpp Add a new unwind method on error. 2017-09-22 16:55:12 -07:00
ElfInterfaceArmTest.cpp Add a new unwind method on error. 2017-09-22 16:55:12 -07:00
ElfInterfaceTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
ElfTest.cpp Add a new unwind method on error. 2017-09-22 16:55:12 -07:00
ElfTestUtils.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
ElfTestUtils.h Make the library usable as a library. 2017-07-14 12:20:23 -07: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 Add a method to share the process memory object. 2017-09-05 14:30:22 -07:00
MapInfoGetElfTest.cpp Add a method to share the process memory object. 2017-09-05 14:30:22 -07:00
MapsTest.cpp Speed up map creation. 2017-08-23 15:43:39 -07: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 Add a new unwind method on error. 2017-09-22 16:55:12 -07:00
RegsStepIfSignalHandlerTest.cpp Speed up StepIfSignalHandler path. 2017-07-19 21:35:46 +00:00
RegsTest.cpp Add a new unwind method on error. 2017-09-22 16:55:12 -07: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
UnwindTest.cpp Add a new unwind method on error. 2017-09-22 16:55:12 -07:00