[MIR][NFC] Use `std::move` to avoid copying (#125930)
[llvm-project.git] / lldb / test / Shell / ObjectFile / PECOFF / settings-abi-i686.yaml
blob561210455010bcb15517d1abc8f19cf36e1d506e
1 ## Check that i386 executables can be opened in both ABI modes.
2 ## I386 executables are special in the sense that the PECOFF object
3 ## file plugin returns two architectures for them, i386 and i686, which
4 ## causes more elaborate comparisons to be run against the Platform plugin's
5 ## architecture list. Check that this is accepted despite potential mismatches
6 ## in the environment part of the triple.
8 # RUN: yaml2obj %s -o %t
10 ## Default ABI is msvc:
11 # RUN: %lldb -O "settings set plugin.object-file.pe-coff.abi msvc" \
12 # RUN:   -f %t -o "image list --triple --basename" -o exit | \
13 # RUN:   FileCheck -DABI=msvc -DFILENAME=%basename_t.tmp %s
15 ## Default ABI is gnu:
16 # RUN: %lldb -O "settings set plugin.object-file.pe-coff.abi gnu" \
17 # RUN:   -f %t -o "image list --triple --basename" -o exit | \
18 # RUN:   FileCheck -DABI=gnu -DFILENAME=%basename_t.tmp %s
20 # CHECK-LABEL: image list --triple --basename
21 # CHECK-NEXT: i386-pc-windows-[[ABI]] [[FILENAME]]
23 --- !COFF
24 OptionalHeader:
25   AddressOfEntryPoint: 4480
26   ImageBase:       268435456
27   SectionAlignment: 4096
28   FileAlignment:   512
29   MajorOperatingSystemVersion: 6
30   MinorOperatingSystemVersion: 0
31   MajorImageVersion: 0
32   MinorImageVersion: 0
33   MajorSubsystemVersion: 6
34   MinorSubsystemVersion: 0
35   Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI
36   DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
37   SizeOfStackReserve: 1048576
38   SizeOfStackCommit: 4096
39   SizeOfHeapReserve: 1048576
40   SizeOfHeapCommit: 4096
41 header:
42   Machine:         IMAGE_FILE_MACHINE_I386
43   Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_32BIT_MACHINE ]
44 sections:
45   - Name:            .text
46     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
47     VirtualAddress:  4096
48     VirtualSize:     64
49     SectionData:     DEADBEEFBAADF00D
50   - Name:            .data
51     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
52     VirtualAddress:  8192
53     VirtualSize:     64
54     SectionData:     DEADBEEFBAADF00D
55   - Name:            .debug_info
56     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
57     VirtualAddress:  16384
58     VirtualSize:     64
59     SectionData:     DEADBEEFBAADF00D
60 symbols:         []
61 ...