android_system_core/libunwindstack
Christopher Ferris 239425b9fa 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
2018-05-17 18:58:42 -07:00
..
include/unwindstack Fix bug when doing signal handler lookup. 2018-05-17 18:58:42 -07:00
tests Fix bug when doing signal handler lookup. 2018-05-17 18:58:42 -07:00
tools Fix bug when doing signal handler lookup. 2018-05-17 18:58:42 -07:00
.clang-format
Android.bp Fix bug when doing signal handler lookup. 2018-05-17 18:58:42 -07:00
ArmExidx.cpp
ArmExidx.h
AsmGetRegsMips.S
AsmGetRegsMips64.S
AsmGetRegsX86.S
AsmGetRegsX86_64.S
Check.h
DexFile.cpp
DexFile.h
DexFiles.cpp
DwarfCfa.cpp
DwarfCfa.h
DwarfDebugFrame.h
DwarfEhFrame.h
DwarfEhFrameWithHdr.cpp
DwarfEhFrameWithHdr.h
DwarfEncoding.h
DwarfMemory.cpp
DwarfOp.cpp
DwarfOp.h
DwarfSection.cpp
Elf.cpp Fix bug when doing signal handler lookup. 2018-05-17 18:58:42 -07:00
ElfInterface.cpp Match LZMA SDK 18.05 API. 2018-05-04 13:12:36 -07:00
ElfInterfaceArm.cpp
ElfInterfaceArm.h
JitDebug.cpp
Log.cpp
MapInfo.cpp
Maps.cpp libprocinfo: add functions reading process map file. 2018-05-14 14:00:18 -07:00
Memory.cpp
OWNERS
Regs.cpp
RegsArm.cpp libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsArm64.cpp libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsInfo.h
RegsMips.cpp libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsMips64.cpp libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsX86.cpp libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsX86_64.cpp libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
Symbols.cpp
Symbols.h
Unwinder.cpp Fix bug when doing signal handler lookup. 2018-05-17 18:58:42 -07:00