brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · bc8c899 Raw
91 lines · yaml
1# Check that memory region parsing works correctly, with a particular emphasis2# on the boundary conditions.3 4# RUN: yaml2obj --docnum=1 %s -o %t1.dmp5# RUN: yaml2obj --docnum=2 %s -o %t2.dmp6# RUN: yaml2obj %S/Inputs/basic-elf.yaml -o %t.memory-region-from-module.exe7 8# RUN: %lldb -b -c %t1.dmp %t.memory-region-from-module.exe \9# RUN:   -o "memory region 0" -o "memory region 0x4000" \10# RUN:   -o "memory region 0x5000" -o "memory region 0x6000" \11# RUN:   | FileCheck --check-prefix=ALL --check-prefix=CHECK1 %s12 13# RUN: %lldb -b -c %t2.dmp %t.memory-region-from-module.exe \14# RUN:   -o "memory region 0" -o "memory region 0x4000" \15# RUN:   -o "memory region 0x5000" -o "memory region 0x6000" \16# RUN:   | FileCheck --check-prefix=ALL --check-prefix=CHECK2 %s17 18# ALL-LABEL: (lldb) memory region 019# ALL: [0x0000000000000000-0x0000000000004000) ---20# ALL-LABEL: (lldb) memory region 0x400021# CHECK1: [0x0000000000004000-0x00000000000040b0) r-x {{.*}}memory-region-from-module.exe PT_LOAD[0]22# CHECK2: [0x0000000000004000-0x0000000000004010) r??23# ALL-LABEL: (lldb) memory region 0x500024# ALL: [0x0000000000005000-0x000000000000505c) rw- {{.*}}memory-region-from-module.exe PT_LOAD[1]25# ALL-LABEL: (lldb) memory region 0x600026# ALL: [0x000000000000505c-0xffffffffffffffff) ---27 28--- !minidump29Streams:30  - Type:            ModuleList31    Modules:32      - Base of Image:   0x000000000000400033        Size of Image:   0x0000200034        Module Name:     'memory-region-from-module.exe'35        CodeView Record: 4C457042DEADBEEFBAADF00D36 37  - Type:            SystemInfo38    Processor Arch:  AMD6439    Platform ID:     Linux40    CPU:41      Vendor ID:       GenuineIntel42      Version Info:    0x0000000043      Feature Info:    0x0000000044  - Type:            LinuxProcStatus45    Text:             |46      Name:	memory-region-from-module.exe47      State:	t (tracing stop)48      Tgid:	2993949      Ngid:	050      Pid:	2993951      PPid:	2937052      TracerPid:	2994053      Uid:	1001	1001	1001	100154      Gid:	1001	1001	1001	100155 56...57 58--- !minidump59Streams:60  - Type:            MemoryList61    Memory Ranges:   62      - Start of Memory Range: 0x000000000000400063        Content:         3004400000000000000000000000000064  - Type:            ModuleList65    Modules:66      - Base of Image:   0x000000000000400067        Size of Image:   0x0000200068        Module Name:     'memory-region-from-module.exe'69        CodeView Record: 4C457042DEADBEEFBAADF00D70 71  - Type:            SystemInfo72    Processor Arch:  AMD6473    Platform ID:     Linux74    CPU:75      Vendor ID:       GenuineIntel76      Version Info:    0x0000000077      Feature Info:    0x0000000078  - Type:            LinuxProcStatus79    Text:             |80      Name:	memory-region-from-module.exe81      State:	t (tracing stop)82      Tgid:	2993983      Ngid:	084      Pid:	2993985      PPid:	2937086      TracerPid:	2994087      Uid:	1001	1001	1001	100188      Gid:	1001	1001	1001	100189 90...91