Home
last modified time | relevance | path

Searched refs:elf_offset (Results 1 – 23 of 23) sorted by relevance

/system/core/libunwindstack/tests/
DElfCacheTest.cpp140 EXPECT_EQ(0U, info0_1.elf_offset); in VerifyWithinSameMap()
141 EXPECT_EQ(0U, info0_2.elf_offset); in VerifyWithinSameMap()
154 EXPECT_EQ(0U, info100_1.elf_offset); in VerifyWithinSameMap()
155 EXPECT_EQ(0U, info100_2.elf_offset); in VerifyWithinSameMap()
168 EXPECT_EQ(0U, info200_1.elf_offset); in VerifyWithinSameMap()
169 EXPECT_EQ(0U, info200_2.elf_offset); in VerifyWithinSameMap()
182 EXPECT_EQ(0x300U, info300_1.elf_offset); in VerifyWithinSameMap()
183 EXPECT_EQ(0x300U, info300_2.elf_offset); in VerifyWithinSameMap()
230 EXPECT_EQ(0x300U, info300_1.elf_offset); in VerifyWithinSameMapNeverReadAtZero()
231 EXPECT_EQ(0x300U, info300_2.elf_offset); in VerifyWithinSameMapNeverReadAtZero()
[all …]
DMapInfoCreateMemoryTest.cpp116 ASSERT_EQ(0x100U, info.elf_offset); in TEST_F()
138 info.elf_offset = 0; in TEST_F()
144 ASSERT_EQ(0x100U, info.elf_offset); in TEST_F()
148 info.elf_offset = 0; in TEST_F()
154 ASSERT_EQ(0x100U, info.elf_offset); in TEST_F()
158 info.elf_offset = 0; in TEST_F()
164 ASSERT_EQ(0x100U, info.elf_offset); in TEST_F()
168 info.elf_offset = 0; in TEST_F()
174 ASSERT_EQ(0x100U, info.elf_offset); in TEST_F()
186 ASSERT_EQ(0U, info.elf_offset); in TEST_F()
[all …]
DMapInfoTest.cpp39 EXPECT_EQ(0UL, map_info.elf_offset); in TEST()
55 EXPECT_EQ(0UL, map_info.elf_offset); in TEST()
DElfInterfaceTest.cpp1038 uint64_t elf_offset = 0x2000; in InitSectionHeadersOffsetsEhFrameSectionBias() local
1041 ehdr.e_shoff = elf_offset; in InitSectionHeadersOffsetsEhFrameSectionBias()
1047 elf_offset += ehdr.e_shentsize; in InitSectionHeadersOffsetsEhFrameSectionBias()
1057 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsEhFrameSectionBias()
1058 elf_offset += ehdr.e_shentsize; in InitSectionHeadersOffsetsEhFrameSectionBias()
1066 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsEhFrameSectionBias()
1067 elf_offset += ehdr.e_shentsize; in InitSectionHeadersOffsetsEhFrameSectionBias()
1077 memory_.SetMemory(elf_offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsetsEhFrameSectionBias()
1130 uint64_t elf_offset = 0x2000; in InitSectionHeadersOffsetsEhFrameHdrSectionBias() local
1133 ehdr.e_shoff = elf_offset; in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
[all …]
DMapInfoGetElfTest.cpp198 ASSERT_EQ(0x100U, info.elf_offset); in TEST_F()
227 ASSERT_EQ(0U, info.elf_offset); in TEST_F()
260 ASSERT_EQ(0U, info.elf_offset); in TEST_F()
288 ASSERT_EQ(0U, info.elf_offset); in TEST_F()
DMapsTest.cpp42 info->elf_offset = element->elf_offset; in VerifyLine()
60 ASSERT_EQ(0U, info->elf_offset); in TEST()
80 ASSERT_EQ(0U, info->elf_offset); in TEST()
DUnwinderTest.cpp109 info2->elf_offset = 0x8000; in SetUpTestSuite()
/system/core/libunwindstack/
DMapInfo.cpp58 elf_offset = offset - prev_real_map->offset; in InitFileMemoryFromPreviousReadOnlyMap()
111 elf_offset = offset; in GetFileMemory()
141 elf_offset = 0; in CreateMemory()
181 elf_offset = offset - prev_real_map->offset; in CreateMemory()
189 ranges->Insert(new MemoryRange(process_memory, start, end - start, elf_offset)); in CreateMemory()
DElf.cpp105 return pc - map_info->start + load_bias_ + map_info->elf_offset; in GetRelPc()
357 if (info->offset == 0 || info->elf_offset != 0) { in CacheAdd()
365 std::make_pair(info->elf, info->elf_offset != 0); in CacheAdd()
370 if (info->name.empty() || info->offset == 0 || info->elf_offset == 0) { in CacheAfterCreateMemory()
396 info->elf_offset = info->offset; in CacheGet()
DRegsX86_64.cpp135 bool RegsX86_64::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
140 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data)) || data != 0x0f0000000fc0c748) { in StepIfSignalHandler()
145 if (!elf_memory->ReadFully(elf_offset + 8, &data2, sizeof(data2)) || data2 != 0x0f05) { in StepIfSignalHandler()
DRegsArm.cpp99 bool RegsArm::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
104 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
DRegsMips64.cpp122 bool RegsMips64::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
127 if (!elf_memory->Read(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
DRegsMips.cpp124 bool RegsMips::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
130 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
DRegsX86.cpp115 bool RegsX86::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
120 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
DRegsArm64.cpp142 bool RegsArm64::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
147 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
/system/core/libunwindstack/include/unwindstack/
DRegsMips.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsArm.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsMips64.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsX86_64.h42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsX86.h42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DRegsArm64.h42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
DMapInfo.h69 uint64_t elf_offset = 0; member
DRegs.h71 virtual bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) = 0;