android_system_core/libunwindstack/tools
Christopher Ferris d299a7ab58 Fix bug when doing signal handler lookup.
The new lld linker uses all non-zero offset executable maps. There was
a bug when trying to find if the stack is in a signal handler that caused
the code to read the wrong place in the elf. Fixed by not adding the elf
offset to the relative pc.

Also fixed the unwind_for_offline tool to dump multiple stacks if necessary.

Added new offline unit test that would have failed with the old code.

Bug: 79936827

Test: Ran unit tests and libbacktrace unit tests.
Test: Dumped backtraces of system pids.
Test: Ran 137-cfi art test.
Change-Id: Iaca8c18c2a314902e64c3f72831234297e8dcb1b
Merged-In: Iaca8c18c2a314902e64c3f72831234297e8dcb1b
(cherry picked from commit 239425b9fa)
2018-05-21 21:33:02 +00:00
..
unwind.cpp Load dex files from ART-specific data structure. 2018-02-02 15:03:00 -08:00
unwind_for_offline.cpp Fix bug when doing signal handler lookup. 2018-05-21 21:33:02 +00:00
unwind_info.cpp Handle ARM thumb function symbols. 2018-03-15 19:28:23 -07:00
unwind_reg_info.cpp Fix soname reading code. 2018-02-15 17:57:13 -08:00
unwind_symbols.cpp Fix soname reading code. 2018-02-15 17:57:13 -08:00