android_system_core/libunwindstack/tests
Florian Mayer 3d67d347f5 Fix copy / move behaviour of Maps object.
Currently, moving or copying a Maps object leads to double free of MapInfo.

Even moving a Maps object  did not prevent this, as after a move
the object only has to be in an "unspecified but valid state", which can
be the original state for a vector of raw pointers (but not for a vector
of unique_ptrs).

Changing to unique_ptrs is the most failsafe way to make sure we never
accidentally destruct MapInfo.

Test: atest libuwindstack_test
      Failed LocalUnwinderTest#unwind_after_dlopen which also fails at master.

Change-Id: Id1c9739b334da5c1ba532fd55366e115940a66d3
2019-03-05 13:05:36 +00:00
..
files Fix offsets when shared lib split across maps. 2018-12-18 11:22:14 -08:00
ArmExidxDecodeTest.cpp
ArmExidxExtractTest.cpp
DexFileData.h
DexFilesTest.cpp Verify that the elf matches the expected arch. 2018-10-29 18:08:09 -07:00
DexFileTest.cpp Remove dependency on libdexfile internal header. 2019-01-11 21:05:50 +00:00
DwarfCfaLogTest.cpp
DwarfCfaTest.cpp
DwarfDebugFrameTest.cpp
DwarfEhFrameTest.cpp
DwarfEhFrameWithHdrTest.cpp
DwarfMemoryTest.cpp Remove CHECK in AdjustEncodedValue. 2018-12-20 08:40:58 -08:00
DwarfOpLogTest.cpp
DwarfOpTest.cpp
DwarfSectionImplTest.cpp
DwarfSectionTest.cpp
ElfCacheTest.cpp switch to using android-base/file.h instead of android-base/test_utils.h 2018-11-14 09:35:34 -08:00
ElfFake.cpp
ElfFake.h Add caching of build id in MapInfo object. 2019-01-17 20:14:00 -08:00
ElfInterfaceArmTest.cpp Remove Memory::ReadField. 2018-07-12 12:45:31 -07:00
ElfInterfaceTest.cpp Add caching of build id in MapInfo object. 2019-01-17 20:14:00 -08:00
ElfTest.cpp Add caching of build id in MapInfo object. 2019-01-17 20:14:00 -08:00
ElfTestUtils.cpp
ElfTestUtils.h
GenGnuDebugdata.cpp
JitDebugTest.cpp Verify that the elf matches the expected arch. 2018-10-29 18:08:09 -07:00
LocalUnwinderTest.cpp
LogFake.cpp
LogFake.h
MapInfoCreateMemoryTest.cpp Fix offsets when shared lib split across maps. 2018-12-18 11:22:14 -08:00
MapInfoGetBuildIDTest.cpp Avoid signed extension of chars for build ids. 2019-01-30 12:09:11 -08:00
MapInfoGetElfTest.cpp Add caching of build id in MapInfo object. 2019-01-17 20:14:00 -08:00
MapInfoGetLoadBiasTest.cpp Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
MapInfoTest.cpp Add support for UnwinderFromPid object. 2019-01-16 15:13:25 -08:00
MapsTest.cpp Fix copy / move behaviour of Maps object. 2019-03-05 13:05:36 +00:00
MemoryBufferTest.cpp
MemoryCacheTest.cpp Add support for caching small reads. 2018-11-28 13:04:58 -08:00
MemoryFake.cpp Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
MemoryFake.h Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
MemoryFileTest.cpp
MemoryLocalTest.cpp
MemoryOfflineBufferTest.cpp
MemoryOfflineTest.cpp switch to using android-base/file.h instead of android-base/test_utils.h 2018-11-14 09:35:34 -08:00
MemoryRangesTest.cpp Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
MemoryRangeTest.cpp Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
MemoryRemoteTest.cpp
MemoryTest.cpp Remove Memory::ReadField. 2018-07-12 12:45:31 -07:00
RegsFake.h
RegsInfoTest.cpp Fix off by one error. 2018-10-23 18:10:41 +01:00
RegsIterateTest.cpp
RegsStepIfSignalHandlerTest.cpp
RegsTest.cpp Fix offsets when shared lib split across maps. 2018-12-18 11:22:14 -08:00
SymbolsTest.cpp
TestLocal.cpp
TestUtils.cpp Add a few leak check tests. 2019-01-25 12:35:19 -08:00
TestUtils.h Add a few leak check tests. 2019-01-25 12:35:19 -08:00
UnwinderTest.cpp Fix copy / move behaviour of Maps object. 2019-03-05 13:05:36 +00:00
UnwindOfflineTest.cpp Add a few leak check tests. 2019-01-25 12:35:19 -08:00
UnwindTest.cpp Add a few leak check tests. 2019-01-25 12:35:19 -08:00