Bump version to 19.1.0 (final)
[llvm-project.git] / lldb / test / Shell / ObjectFile / PECOFF / dwarf-gnu-debuglink-i686.yaml
blobaa07830dad4d7f6ebc825918460b359f436dbf86
1 # This test produces a stripped version of the object file and adds a
2 # gnu-debuglink section to it linking to the unstripped version of the object
3 # file. The debug info shall be loaded from the gnu-debuglink reference.
5 # This test is added to check that LocateExecutableSymbolFile can handle
6 # ObjectFilePECOFF::GetModuleSpecifications returning two different module
7 # specs for MachineX86 -- "i386-pc-windows" and "i686-pc-windows".
9 # RUN: yaml2obj %s -o %t
10 # RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t %t %t.stripped
11 # RUN: lldb-test object-file %t.stripped | FileCheck %s
13 # CHECK: Name: .debug_info
14 # CHECK-NEXT: Type: dwarf-info
16 --- !COFF
17 OptionalHeader:
18   AddressOfEntryPoint: 4480
19   ImageBase:       268435456
20   SectionAlignment: 4096
21   FileAlignment:   512
22   MajorOperatingSystemVersion: 6
23   MinorOperatingSystemVersion: 0
24   MajorImageVersion: 0
25   MinorImageVersion: 0
26   MajorSubsystemVersion: 6
27   MinorSubsystemVersion: 0
28   Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI
29   DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
30   SizeOfStackReserve: 1048576
31   SizeOfStackCommit: 4096
32   SizeOfHeapReserve: 1048576
33   SizeOfHeapCommit: 4096
34 header:
35   Machine:         IMAGE_FILE_MACHINE_I386
36   Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_32BIT_MACHINE ]
37 sections:
38   - Name:            .text
39     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
40     VirtualAddress:  4096
41     VirtualSize:     64
42     SectionData:     DEADBEEFBAADF00D
43   - Name:            .data
44     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
45     VirtualAddress:  8192
46     VirtualSize:     64
47     SectionData:     DEADBEEFBAADF00D
48   - Name:            .debug_info
49     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
50     VirtualAddress:  16384
51     VirtualSize:     64
52     SectionData:     DEADBEEFBAADF00D
53 symbols:         []
54 ...