1 Test that we correctly find a PE/COFF file in our executable search path, and
2 use it when opening minidumps.
4 RUN: yaml2obj %S/Inputs/find-module.exe.yaml -o %T/find-module.exe
5 RUN: yaml2obj %S/Inputs/find-module.dmp.yaml -o %T/find-module.dmp
6 RUN: %lldb -O "settings set target.exec-search-paths %T" \
7 RUN: -c %T/find-module.dmp -o "image dump objfile" -o "target list" -o exit \
8 RUN: | FileCheck --check-prefix=DEFAULT %s
10 RUN: %lldb -O "settings set plugin.object-file.pe-coff.abi msvc" \
11 RUN: -O "settings set target.exec-search-paths %T" -c %T/find-module.dmp \
12 RUN: -o "target list" -o exit | FileCheck --check-prefix=MSVC %s
14 RUN: %lldb -O "settings set plugin.object-file.pe-coff.abi gnu" \
15 RUN: -O "settings set target.exec-search-paths %T" -c %T/find-module.dmp \
16 RUN: -o "target list" -o exit | FileCheck --check-prefix=GNU %s
18 DEFAULT-LABEL: image dump objfile
19 DEFAULT: ObjectFilePECOFF, file = '{{.*}}find-module.exe', arch = i386
21 DEFAULT-LABEL: target list
22 DEFAULT: arch=i386-pc-windows-{{msvc|gnu}}
24 MSVC-LABEL: target list
25 MSVC: arch=i386-pc-windows-msvc
27 GNU-LABEL: target list
28 GNU: arch=i386-pc-windows-gnu