Lines Matching refs:elf
74 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() local
75 ASSERT_TRUE(elf != nullptr); in TEST_F()
76 ASSERT_FALSE(elf->valid()); in TEST_F()
86 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() local
87 ASSERT_TRUE(elf != nullptr); in TEST_F()
88 ASSERT_TRUE(elf->valid()); in TEST_F()
89 EXPECT_EQ(static_cast<uint32_t>(EM_ARM), elf->machine_type()); in TEST_F()
90 EXPECT_EQ(ELFCLASS32, elf->class_type()); in TEST_F()
93 info.elf.reset(); in TEST_F()
94 elf = info.GetElf(std::shared_ptr<Memory>(), ARCH_ARM); in TEST_F()
95 ASSERT_TRUE(elf != nullptr); in TEST_F()
96 ASSERT_FALSE(elf->valid()); in TEST_F()
106 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F() local
107 ASSERT_TRUE(elf != nullptr); in TEST_F()
108 ASSERT_TRUE(elf->valid()); in TEST_F()
109 EXPECT_EQ(static_cast<uint32_t>(EM_AARCH64), elf->machine_type()); in TEST_F()
110 EXPECT_EQ(ELFCLASS64, elf->class_type()); in TEST_F()
120 Elf* elf = info.GetElf(process_memory_, ARCH_X86); in TEST_F() local
121 ASSERT_TRUE(elf != nullptr); in TEST_F()
122 ASSERT_FALSE(elf->valid()); in TEST_F()
133 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() local
134 ASSERT_TRUE(elf != nullptr); in TEST_F()
135 ASSERT_TRUE(elf->valid()); in TEST_F()
136 EXPECT_EQ(static_cast<uint32_t>(EM_ARM), elf->machine_type()); in TEST_F()
137 EXPECT_EQ(ELFCLASS32, elf->class_type()); in TEST_F()
138 EXPECT_TRUE(elf->gnu_debugdata_interface() != nullptr); in TEST_F()
149 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F() local
150 ASSERT_TRUE(elf != nullptr); in TEST_F()
151 ASSERT_TRUE(elf->valid()); in TEST_F()
152 EXPECT_EQ(static_cast<uint32_t>(EM_AARCH64), elf->machine_type()); in TEST_F()
153 EXPECT_EQ(ELFCLASS64, elf->class_type()); in TEST_F()
154 EXPECT_TRUE(elf->gnu_debugdata_interface() != nullptr); in TEST_F()
164 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() local
165 ASSERT_TRUE(elf != nullptr); in TEST_F()
166 ASSERT_FALSE(elf->valid()); in TEST_F()
168 info.elf.reset(); in TEST_F()
170 elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
171 ASSERT_TRUE(elf != nullptr); in TEST_F()
172 ASSERT_FALSE(elf->valid()); in TEST_F()
175 info.elf.reset(); in TEST_F()
177 elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
178 ASSERT_TRUE(elf != nullptr); in TEST_F()
179 ASSERT_TRUE(elf->valid()); in TEST_F()
194 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() local
195 ASSERT_TRUE(elf != nullptr); in TEST_F()
196 ASSERT_TRUE(elf->valid()); in TEST_F()
197 ASSERT_TRUE(elf->memory() != nullptr); in TEST_F()
202 ASSERT_TRUE(elf->memory()->ReadFully(0, buffer.data(), buffer.size())); in TEST_F()
208 ASSERT_FALSE(elf->memory()->ReadFully(buffer.size(), buffer.data(), 1)); in TEST_F()
223 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() local
224 ASSERT_TRUE(elf != nullptr); in TEST_F()
225 ASSERT_TRUE(elf->valid()); in TEST_F()
226 ASSERT_TRUE(elf->memory() != nullptr); in TEST_F()
230 ASSERT_TRUE(elf->memory()->ReadFully(0, buffer.data(), 0x1000)); in TEST_F()
236 ASSERT_FALSE(elf->memory()->ReadFully(0x1000, buffer.data(), 1)); in TEST_F()
256 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F() local
257 ASSERT_TRUE(elf != nullptr); in TEST_F()
258 ASSERT_TRUE(elf->valid()); in TEST_F()
259 ASSERT_TRUE(elf->memory() != nullptr); in TEST_F()
264 ASSERT_TRUE(elf->memory()->ReadFully(0, buffer.data(), 0x1000)); in TEST_F()
268 ASSERT_TRUE(elf->memory()->ReadFully(0x1000, buffer.data(), 1)); in TEST_F()
284 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F() local
285 ASSERT_TRUE(elf != nullptr); in TEST_F()
286 ASSERT_TRUE(elf->valid()); in TEST_F()
287 ASSERT_TRUE(elf->memory() != nullptr); in TEST_F()
292 ASSERT_TRUE(elf->memory()->ReadFully(0, buffer.data(), 0x1000)); in TEST_F()
296 ASSERT_TRUE(elf->memory()->ReadFully(0x1000, buffer.data(), 1)); in TEST_F()
312 Elf* elf = info.GetElf(process_memory_, ARCH_X86_64); in TEST_F() local
313 ASSERT_TRUE(elf != nullptr); in TEST_F()
314 ASSERT_FALSE(elf->valid()); in TEST_F()
317 info.elf.reset(); in TEST_F()
319 elf = info.GetElf(process_memory_, ARCH_X86_64); in TEST_F()
320 ASSERT_FALSE(elf->valid()); in TEST_F()
323 info.elf.reset(); in TEST_F()
325 elf = info.GetElf(process_memory_, ARCH_X86_64); in TEST_F()
326 ASSERT_TRUE(elf->valid()); in TEST_F()
351 Elf* elf = info.GetElf(process_memory_, ARCH_X86_64); in TEST_F() local
352 elf_in_threads[i] = elf; in TEST_F()
356 ASSERT_TRUE(info.elf == nullptr); in TEST_F()
366 Elf* elf = info.elf.get(); in TEST_F() local
367 ASSERT_TRUE(elf != nullptr); in TEST_F()
368 EXPECT_TRUE(elf->valid()); in TEST_F()
370 EXPECT_EQ(elf, elf_in_threads[i]) << "Thread " << i << " mismatched."; in TEST_F()
382 Elf* elf = info2.GetElf(process_memory_, ARCH_ARM); in TEST_F() local
383 ASSERT_TRUE(elf != nullptr); in TEST_F()
384 ASSERT_TRUE(elf->valid()); in TEST_F()
386 ASSERT_NE(elf, info1.GetElf(process_memory_, ARCH_ARM)); in TEST_F()
398 Elf* elf = rw_info.GetElf(process_memory_, ARCH_ARM); in TEST_F() local
399 ASSERT_TRUE(elf != nullptr); in TEST_F()
400 ASSERT_TRUE(elf->valid()); in TEST_F()
402 ASSERT_EQ(elf, r_info.GetElf(process_memory_, ARCH_ARM)); in TEST_F()