platform_system_core/debuggerd/crasher
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
..
arm debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
arm64 debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
mips debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
mips64 debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
x86 debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
x86_64 debuggerd: advance our amazing bet. 2017-01-17 13:57:57 -08:00
Android.bp Enable HAS_VFP_D32 for 32-bit armv8 crasher 2017-09-15 15:31:22 +08:00
crasher.cpp Add a new unwind method on error. 2017-09-22 16:55:12 -07:00