xref: /llvm-project/lldb/test/Shell/Minidump/Windows/find-module.test (revision 905256ad2ff136ec15e4c1a822412c87881876b8)
1Test that we correctly find a PE/COFF file in our executable search path, and
2use it when opening minidumps.
3
4XFAIL: system-windows && remote-linux
5
6RUN: yaml2obj %S/Inputs/find-module.exe.yaml -o %T/find-module.exe
7RUN: yaml2obj %S/Inputs/find-module.dmp.yaml -o %T/find-module.dmp
8RUN: %lldb -O "settings set target.exec-search-paths %T" \
9RUN:   -c %T/find-module.dmp -o "image dump objfile" -o "target list" -o exit \
10RUN:   | FileCheck --check-prefix=DEFAULT %s
11
12RUN: %lldb -O "settings set plugin.object-file.pe-coff.abi msvc" \
13RUN:   -O "settings set target.exec-search-paths %T" -c %T/find-module.dmp \
14RUN:   -o "target list" -o exit | FileCheck --check-prefix=MSVC %s
15
16RUN: %lldb -O "settings set plugin.object-file.pe-coff.abi gnu" \
17RUN:   -O "settings set target.exec-search-paths %T" -c %T/find-module.dmp \
18RUN:   -o "target list" -o exit | FileCheck --check-prefix=GNU %s
19
20DEFAULT-LABEL: image dump objfile
21DEFAULT: ObjectFilePECOFF, file = '{{.*}}find-module.exe', arch = i386
22
23DEFAULT-LABEL: target list
24DEFAULT: arch=i386-pc-windows-{{msvc|gnu}}
25
26MSVC-LABEL: target list
27MSVC: arch=i386-pc-windows-msvc
28
29GNU-LABEL: target list
30GNU: arch=i386-pc-windows-gnu
31