1## Test that we don't crash when the process fails to launch before reaching
2## the initial stop. This test exe has a dependency on NonExistent.dll.
3
4# REQUIRES: system-windows
5# REQUIRES: native && target-x86_64
6
7# RUN: yaml2obj %s -o %t.exe
8# RUN: %lldb %t.exe -o run 2>&1 | FileCheck %s
9
10# CHECK: error: unknown error
11
12--- !COFF
13OptionalHeader:
14  AddressOfEntryPoint: 4096
15  ImageBase:       1073741824
16  SectionAlignment: 4096
17  FileAlignment:   512
18  MajorOperatingSystemVersion: 6
19  MinorOperatingSystemVersion: 0
20  MajorImageVersion: 0
21  MinorImageVersion: 0
22  MajorSubsystemVersion: 6
23  MinorSubsystemVersion: 0
24  Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI
25  DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
26  SizeOfStackReserve: 1048576
27  SizeOfStackCommit: 4096
28  SizeOfHeapReserve: 1048576
29  SizeOfHeapCommit: 4096
30  ExportTable:
31    RelativeVirtualAddress: 0
32    Size:            0
33  ImportTable:
34    RelativeVirtualAddress: 8192
35    Size:            40
36  ResourceTable:
37    RelativeVirtualAddress: 0
38    Size:            0
39  ExceptionTable:
40    RelativeVirtualAddress: 0
41    Size:            0
42  CertificateTable:
43    RelativeVirtualAddress: 0
44    Size:            0
45  BaseRelocationTable:
46    RelativeVirtualAddress: 0
47    Size:            0
48  Debug:
49    RelativeVirtualAddress: 0
50    Size:            0
51  Architecture:
52    RelativeVirtualAddress: 0
53    Size:            0
54  GlobalPtr:
55    RelativeVirtualAddress: 0
56    Size:            0
57  TlsTable:
58    RelativeVirtualAddress: 0
59    Size:            0
60  LoadConfigTable:
61    RelativeVirtualAddress: 0
62    Size:            0
63  BoundImport:
64    RelativeVirtualAddress: 0
65    Size:            0
66  IAT:
67    RelativeVirtualAddress: 8248
68    Size:            16
69  DelayImportDescriptor:
70    RelativeVirtualAddress: 0
71    Size:            0
72  ClrRuntimeHeader:
73    RelativeVirtualAddress: 0
74    Size:            0
75header:
76  Machine:         IMAGE_FILE_MACHINE_AMD64
77  Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
78sections:
79  - Name:            .text
80    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
81    VirtualAddress:  4096
82    VirtualSize:     7
83    SectionData:     48FF2531100000
84  - Name:            .rdata
85    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
86    VirtualAddress:  8192
87    VirtualSize:     96
88    SectionData:     282000000000000000000000502000003820000000000000000000000000000000000000000000004820000000000000000000000000000048200000000000000000000000000000000066756E6300004E6F6E4578697374656E742E646C6C00
89symbols:         []
90...
91