platform_system_core/libunwindstack/tests
Christopher Ferris b7de5f5429 Demand read load bias for a map.
Add a static GetLoadBias method to the Elf object that only reads just
enough to get the load bias.

Add a method to MapInfo that gets the load bias. First attempt to get
it if the elf object already exists. If no elf object was created, use
the new static method to get the load bias.

In BacktraceMap, add a custom iterator so that when code dereferences
a map element, that's when the load bias will be retrieved if it hasn't
already been set.

Bug: 69871050

Test: New unit tests, verify tombstones have non-zero load bias values for
Test: libraries with a non-zero load bias.
Change-Id: I125f4abc827589957fce2f0df24b0f25d037d732
2017-12-05 13:12:47 -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 Merge changes I53c2c560,I7d845ac5,I8b11d923 2017-12-02 00:12:21 +00:00
MapInfoGetElfTest.cpp Merge changes I53c2c560,I7d845ac5,I8b11d923 2017-12-02 00:12:21 +00:00
MapInfoGetLoadBiasTest.cpp Demand read load bias for a map. 2017-12-05 13:12:47 -08:00
MapsTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
MemoryBufferTest.cpp unwindstack: rename Memory::ReadPartially to Read. 2017-11-15 15:38:13 -08:00
MemoryFake.cpp unwindstack: rename Memory::ReadPartially to Read. 2017-11-15 15:38:13 -08:00
MemoryFake.h unwindstack: rename Memory::ReadPartially to Read. 2017-11-15 15:38:13 -08:00
MemoryFileTest.cpp unwindstack: rename Memory::Read to ReadFully. 2017-11-15 15:38:13 -08:00
MemoryLocalTest.cpp unwindstack: rename Memory::ReadPartially to Read. 2017-11-15 15:38:13 -08:00
MemoryRangeTest.cpp unwindstack: rename Memory::ReadPartially to Read. 2017-11-15 15:38:13 -08:00
MemoryRemoteTest.cpp Switch MemoryRemote to use ptrace. 2017-12-04 14:27:34 -08: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
UnwindOfflineTest.cpp Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00
UnwindTest.cpp Merge changes I53c2c560,I7d845ac5,I8b11d923 2017-12-02 00:12:21 +00:00
UnwinderTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00