Lines Matching +full:400 +full:ee000 +full:- +full:400 +full:ef000
1 //===-- MinidumpTypesTest.cpp ---------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
45 auto BufferPtr = FileSystem::Instance().CreateDataBuffer(filename, -1, 0); in SetUpData()
51 ASSERT_GT(parser->GetData().size(), 0UL); in SetUpData()
79 --- !minidump in TEST_F()
81 - Type: LinuxAuxv in TEST_F()
83 - Type: LinuxAuxv in TEST_F()
96 --- !minidump in TEST_F()
98 - Type: ThreadList in TEST_F()
100 - Thread Id: 0x00003E81 in TEST_F()
110 thread_list = parser->GetThreads(); in TEST_F()
117 llvm::ArrayRef<uint8_t> context = parser->GetThreadContext(thread); in TEST_F()
123 --- !minidump in TEST_F()
125 - Type: SystemInfo in TEST_F()
139 parser->GetArchitecture().GetMachine()); in TEST_F()
141 parser->GetArchitecture().GetTriple().getOS()); in TEST_F()
148 --- !minidump in TEST_F()
153 EXPECT_EQ(nullptr, parser->GetMiscInfo()); in TEST_F()
158 --- !minidump in TEST_F()
160 - Type: SystemInfo in TEST_F()
166 CSD Version: 'Linux 3.13.0-91-generic' in TEST_F()
171 - Type: LinuxProcStatus in TEST_F()
185 llvm::Optional<LinuxProcStatus> proc_status = parser->GetLinuxProcStatus(); in TEST_F()
187 lldb::pid_t pid = proc_status->GetPid(); in TEST_F()
193 --- !minidump in TEST_F()
195 - Type: SystemInfo in TEST_F()
201 CSD Version: 'Linux 3.13.0-91-generic' in TEST_F()
206 - Type: LinuxProcStatus in TEST_F()
220 llvm::Optional<lldb::pid_t> pid = parser->GetPid(); in TEST_F()
227 --- !minidump in TEST_F()
229 - Type: ModuleList in TEST_F()
231 - Base of Image: 0x0000000000400000 in TEST_F()
233 Module Name: '/tmp/test/linux-x86_64_not_crashed' in TEST_F()
235 - Base of Image: 0x0000000000600000 in TEST_F()
237 Module Name: '/tmp/test/linux-x86_64_not_crashed' in TEST_F()
242 llvm::ArrayRef<minidump::Module> modules = parser->GetModuleList(); in TEST_F()
244 parser->GetFilteredModuleList(); in TEST_F()
248 EXPECT_THAT_EXPECTED(parser->GetMinidumpFile().getString(M.ModuleNameRVA), in TEST_F()
249 llvm::HasValue("/tmp/test/linux-x86_64_not_crashed")); in TEST_F()
253 SetUpData("linux-x86_64.dmp"); in TEST_F()
255 parser->GetExceptionStream(); in TEST_F()
257 ASSERT_EQ(11UL, exception_stream->ExceptionRecord.ExceptionCode); in TEST_F()
264 EXPECT_EQ(range_start, range->start); in check_mem_range_exists()
265 EXPECT_EQ(range_start + range_size, range->start + range->range_ref.size()); in check_mem_range_exists()
270 --- !minidump in TEST_F()
272 - Type: MemoryList in TEST_F()
274 - Start of Memory Range: 0x00007FFCEB34A000 in TEST_F()
276 - Start of Memory Range: 0x0000000000401D46 in TEST_F()
281 EXPECT_EQ(llvm::None, parser->FindMemoryRange(0x00)); in TEST_F()
282 EXPECT_EQ(llvm::None, parser->FindMemoryRange(0x2a)); in TEST_F()
284 parser->FindMemoryRange(0x401d46)); in TEST_F()
285 EXPECT_EQ(llvm::None, parser->FindMemoryRange(0x401d46 + 2)); in TEST_F()
290 parser->FindMemoryRange(0x7ffceb34a000 + 2)); in TEST_F()
291 EXPECT_EQ(llvm::None, parser->FindMemoryRange(0x7ffceb34a000 + 5)); in TEST_F()
296 --- !minidump in TEST_F()
298 - Type: MemoryList in TEST_F()
300 - Start of Memory Range: 0x00007FFCEB34A000 in TEST_F()
302 - Start of Memory Range: 0x0000000000401D46 in TEST_F()
308 EXPECT_EQ((llvm::ArrayRef<uint8_t>{0x54}), parser->GetMemory(0x401d46, 1)); in TEST_F()
310 parser->GetMemory(0x401d46, 4)); in TEST_F()
313 parser->GetMemory(0x7ffceb34a000, 5)); in TEST_F()
315 parser->GetMemory(0x7ffceb34a000, 3)); in TEST_F()
317 EXPECT_EQ(llvm::ArrayRef<uint8_t>(), parser->GetMemory(0x500000, 512)); in TEST_F()
324 EXPECT_FALSE(parser->FindMemoryRange(0x00).hasValue()); in TEST_F()
325 EXPECT_FALSE(parser->FindMemoryRange(0x2a).hasValue()); in TEST_F()
328 EXPECT_FALSE(parser->FindMemoryRange(0x40000 + 4096).hasValue()); in TEST_F()
331 EXPECT_FALSE(parser->FindMemoryRange(0x7ffe0000 + 4096).hasValue()); in TEST_F()
340 --- !minidump in TEST_F()
342 - Type: MemoryInfoList in TEST_F()
344 - Base Address: 0x0000000000000000 in TEST_F()
350 - Base Address: 0x0000000000010000 in TEST_F()
355 - Base Address: 0x0000000000040000 in TEST_F()
361 - Base Address: 0x000000007FFE0000 in TEST_F()
366 - Base Address: 0x000000007FFE1000 in TEST_F()
378 parser->BuildMemoryRegions(), in TEST_F()
395 --- !minidump in TEST_F()
397 - Type: MemoryList in TEST_F()
399 - Start of Memory Range: 0x0000000000001000 in TEST_F()
401 - Start of Memory Range: 0x0000000000002000 in TEST_F()
411 parser->BuildMemoryRegions(), in TEST_F()
422 SetUpData("regions-memlist64.dmp"); in TEST_F()
427 parser->BuildMemoryRegions(), in TEST_F()
439 --- !minidump in TEST_F()
441 - Type: LinuxMaps in TEST_F()
443 400d9000-400db000 r-xp 00000000 b3:04 227 /system/bin/app_process in TEST_F()
444 400db000-400dc000 r--p 00001000 b3:04 227 /system/bin/app_process in TEST_F()
445 400dc000-400dd000 rw-p 00000000 00:00 0 in TEST_F()
446 400ec000-400ed000 r--p 00000000 00:00 0 in TEST_F()
447 400ee000-400ef000 rw-p 00010000 b3:04 300 /system/bin/linker in TEST_F()
448 400fc000-400fd000 rwxp 00001000 b3:04 1096 /system/lib/liblog.so in TEST_F()
458 EXPECT_THAT(parser->BuildMemoryRegions(), in TEST_F()
478 --- !minidump in TEST_F()
480 - Type: LinuxMaps in TEST_F()
482 400d9000-400db000 r?xp 00000000 b3:04 227 in TEST_F()
483 400fc000-400fd000 rwxp 00001000 b3:04 1096 in TEST_F()
489 EXPECT_THAT(parser->BuildMemoryRegions(), in TEST_F()
499 --- !minidump in TEST_F()
501 - Type: SystemInfo in TEST_F()
522 parser->GetArchitecture().GetMachine()); in TEST_F()
524 parser->GetArchitecture().GetTriple().getOS()); in TEST_F()
531 --- !minidump in TEST_F()
536 EXPECT_EQ(llvm::None, parser->GetLinuxProcStatus()); in TEST_F()
541 const MinidumpMiscInfo *misc_info = parser->GetMiscInfo(); in TEST_F()
543 llvm::Optional<lldb::pid_t> pid = misc_info->GetPid(); in TEST_F()
550 llvm::Optional<lldb::pid_t> pid = parser->GetPid(); in TEST_F()
558 llvm::Optional<lldb::pid_t> pid = parser->GetPid(); in TEST_F()
569 --- !minidump in TEST_F()
571 - Type: ThreadList in TEST_F()
573 - Thread Id: 0x00026804 in TEST_F()
581 llvm::ArrayRef<minidump::Thread> thread_list = parser->GetThreads(); in TEST_F()
583 llvm::ArrayRef<uint8_t> registers(parser->GetThreadContext(thread)); in TEST_F()
587 EXPECT_EQ(MinidumpContext_x86_32_Flags(uint32_t(context->context_flags)), in TEST_F()
592 EXPECT_EQ(0x00000000u, context->eax); in TEST_F()
593 EXPECT_EQ(0xf7778000u, context->ebx); in TEST_F()
594 EXPECT_EQ(0x00000001u, context->ecx); in TEST_F()
595 EXPECT_EQ(0xff9dd4a3u, context->edx); in TEST_F()
596 EXPECT_EQ(0x080482a8u, context->edi); in TEST_F()
597 EXPECT_EQ(0xff9dd55cu, context->esi); in TEST_F()
598 EXPECT_EQ(0xff9dd53cu, context->ebp); in TEST_F()
599 EXPECT_EQ(0xff9dd52cu, context->esp); in TEST_F()
600 EXPECT_EQ(0x080482a0u, context->eip); in TEST_F()
601 EXPECT_EQ(0x00010282u, context->eflags); in TEST_F()
602 EXPECT_EQ(0x0023u, context->cs); in TEST_F()
603 EXPECT_EQ(0x0000u, context->fs); in TEST_F()
604 EXPECT_EQ(0x0063u, context->gs); in TEST_F()
605 EXPECT_EQ(0x002bu, context->ss); in TEST_F()
606 EXPECT_EQ(0x002bu, context->ds); in TEST_F()
607 EXPECT_EQ(0x002bu, context->es); in TEST_F()
612 --- !minidump in TEST_F()
614 - Type: ThreadList in TEST_F()
616 - Thread Id: 0x00003E81 in TEST_F()
624 llvm::ArrayRef<minidump::Thread> thread_list = parser->GetThreads(); in TEST_F()
626 llvm::ArrayRef<uint8_t> registers(parser->GetThreadContext(thread)); in TEST_F()
630 EXPECT_EQ(MinidumpContext_x86_64_Flags(uint32_t(context->context_flags)), in TEST_F()
635 EXPECT_EQ(0x0000000000000000u, context->rax); in TEST_F()
636 EXPECT_EQ(0x0000000000000000u, context->rbx); in TEST_F()
637 EXPECT_EQ(0x0000000000000010u, context->rcx); in TEST_F()
638 EXPECT_EQ(0x0000000000000000u, context->rdx); in TEST_F()
639 EXPECT_EQ(0x00007ffceb349cf0u, context->rdi); in TEST_F()
640 EXPECT_EQ(0x0000000000000000u, context->rsi); in TEST_F()
641 EXPECT_EQ(0x00007ffceb34a210u, context->rbp); in TEST_F()
642 EXPECT_EQ(0x00007ffceb34a210u, context->rsp); in TEST_F()
643 EXPECT_EQ(0x00007fe9bc1aa9c0u, context->r8); in TEST_F()
644 EXPECT_EQ(0x0000000000000000u, context->r9); in TEST_F()
645 EXPECT_EQ(0x00007fe9bc3f16a0u, context->r10); in TEST_F()
646 EXPECT_EQ(0x0000000000000246u, context->r11); in TEST_F()
647 EXPECT_EQ(0x0000000000401c92u, context->r12); in TEST_F()
648 EXPECT_EQ(0x00007ffceb34a430u, context->r13); in TEST_F()
649 EXPECT_EQ(0x0000000000000000u, context->r14); in TEST_F()
650 EXPECT_EQ(0x0000000000000000u, context->r15); in TEST_F()
651 EXPECT_EQ(0x0000000000401dc6u, context->rip); in TEST_F()
652 EXPECT_EQ(0x00010206u, context->eflags); in TEST_F()
653 EXPECT_EQ(0x0033u, context->cs); in TEST_F()
654 EXPECT_EQ(0x0000u, context->ss); in TEST_F()
659 llvm::ArrayRef<minidump::Thread> thread_list = parser->GetThreads(); in TEST_F()
661 llvm::ArrayRef<uint8_t> registers(parser->GetThreadContextWow64(thread)); in TEST_F()
665 EXPECT_EQ(MinidumpContext_x86_32_Flags(uint32_t(context->context_flags)), in TEST_F()
671 EXPECT_EQ(0x00000000u, context->eax); in TEST_F()
672 EXPECT_EQ(0x0037f608u, context->ebx); in TEST_F()
673 EXPECT_EQ(0x00e61578u, context->ecx); in TEST_F()
674 EXPECT_EQ(0x00000008u, context->edx); in TEST_F()
675 EXPECT_EQ(0x00000000u, context->edi); in TEST_F()
676 EXPECT_EQ(0x00000002u, context->esi); in TEST_F()
677 EXPECT_EQ(0x0037f654u, context->ebp); in TEST_F()
678 EXPECT_EQ(0x0037f5b8u, context->esp); in TEST_F()
679 EXPECT_EQ(0x77ce01fdu, context->eip); in TEST_F()
680 EXPECT_EQ(0x00000246u, context->eflags); in TEST_F()
681 EXPECT_EQ(0x0023u, context->cs); in TEST_F()
682 EXPECT_EQ(0x0053u, context->fs); in TEST_F()
683 EXPECT_EQ(0x002bu, context->gs); in TEST_F()
684 EXPECT_EQ(0x002bu, context->ss); in TEST_F()
685 EXPECT_EQ(0x002bu, context->ds); in TEST_F()
686 EXPECT_EQ(0x002bu, context->es); in TEST_F()
691 --- !minidump in TEST_F()
693 - Type: ModuleList in TEST_F()
695 - Base of Image: 0x0000000000002000 in TEST_F()
699 - Base of Image: 0x0000000000001000 in TEST_F()
709 parser->GetFilteredModuleList(); in TEST_F()
711 EXPECT_EQ(0x0000000000001000u, filtered_modules[0]->BaseOfImage); in TEST_F()
716 --- !minidump in TEST_F()
718 - Type: ModuleList in TEST_F()
720 - Base of Image: 0x400d0000 in TEST_F()
724 - Base of Image: 0x400d3000 in TEST_F()
728 - Type: LinuxMaps in TEST_F()
730 400d0000-400d2000 r--p 00000000 b3:04 227 /usr/lib/libc.so in TEST_F()
731 400d2000-400d3000 rw-p 00000000 00:00 0 in TEST_F()
732 400d3000-400d4000 r-xp 00010000 b3:04 227 /usr/lib/libc.so in TEST_F()
733 400d4000-400d5000 rwxp 00001000 b3:04 227 /usr/lib/libc.so in TEST_F()
749 parser->GetFilteredModuleList(); in TEST_F()
751 EXPECT_EQ(0x400d3000u, filtered_modules[0]->BaseOfImage); in TEST_F()
756 --- !minidump in TEST_F()
758 - Type: ModuleList in TEST_F()
760 - Base of Image: 0x400d0000 in TEST_F()
764 - Base of Image: 0x400d3000 in TEST_F()
768 - Type: LinuxMaps in TEST_F()
770 400d0000-400d1000 r-xp 00010000 b3:04 227 /usr/lib/libc.so in TEST_F()
771 400d1000-400d2000 rwxp 00001000 b3:04 227 /usr/lib/libc.so in TEST_F()
772 400d2000-400d3000 rw-p 00000000 00:00 0 in TEST_F()
773 400d3000-400d5000 r--p 00000000 b3:04 227 /usr/lib/libc.so in TEST_F()
790 parser->GetFilteredModuleList(); in TEST_F()
792 EXPECT_EQ(0x400d0000u, filtered_modules[0]->BaseOfImage); in TEST_F()
797 --- !minidump in TEST_F()
799 - Type: ModuleList in TEST_F()
801 - Base of Image: 0x400d0000 in TEST_F()
805 - Base of Image: 0x400d5000 in TEST_F()
809 - Type: LinuxMaps in TEST_F()
811 400d0000-400d3000 r--p 00000000 b3:04 227 /usr/lib/libc.so in TEST_F()
812 400d3000-400d5000 rw-p 00000000 00:00 0 in TEST_F()
813 400d5000-400d6000 r--p 00000000 b3:04 227 /usr/lib/libc.so in TEST_F()
814 400d6000-400d7000 r-xp 00010000 b3:04 227 /usr/lib/libc.so in TEST_F()
815 400d7000-400d8000 rwxp 00001000 b3:04 227 /usr/lib/libc.so in TEST_F()
828 // This test will make sure if binaries are compiled with "-z separate-code", in TEST_F()
833 parser->GetFilteredModuleList(); in TEST_F()
835 EXPECT_EQ(0x400d5000u, filtered_modules[0]->BaseOfImage); in TEST_F()
840 --- !minidump in TEST_F()
842 - Type: ModuleList in TEST_F()
844 - Base of Image: 0x0000000000002000 in TEST_F()
848 - Base of Image: 0x0000000000001000 in TEST_F()
859 parser->GetFilteredModuleList(); in TEST_F()
861 EXPECT_EQ(0x0000000000002000u, filtered_modules[0]->BaseOfImage); in TEST_F()
863 parser->GetMinidumpFile().getString(filtered_modules[0]->ModuleNameRVA), in TEST_F()
865 EXPECT_EQ(0x0000000000001000u, filtered_modules[1]->BaseOfImage); in TEST_F()
867 parser->GetMinidumpFile().getString(filtered_modules[1]->ModuleNameRVA), in TEST_F()