brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · 91f451f Raw
72 lines · cpp
1// REQUIRES: !diasdk, target-windows2 3// Test plugin.symbol-file.pdb.reader setting without the DIA SDK4// RUN: %build -o %t.exe -- %s5// RUN: env -u LLDB_USE_NATIVE_PDB_READER %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=NO-ENV %s6// RUN: env LLDB_USE_NATIVE_PDB_READER= %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=NO-ENV %s7 8// RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV0 %s9// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s10 11// RUN: env LLDB_USE_NATIVE_PDB_READER=foo %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s12// RUN: env LLDB_USE_NATIVE_PDB_READER=42 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s13// RUN: env LLDB_USE_NATIVE_PDB_READER=-1 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s14 15// RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb \16// RUN:     -o 'settings set plugin.symbol-file.pdb.reader dia' \17// RUN:     -o 'target create %t.exe' \18// RUN:     -o 'target modules dump symfile' \19// RUN:     2>&1 | FileCheck --check-prefix=ENV0-SET-DIA %s20// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb \21// RUN:     -o 'settings set plugin.symbol-file.pdb.reader dia' \22// RUN:     -o 'target create %t.exe' \23// RUN:     -o 'target modules dump symfile' \24// RUN:     2>&1 | FileCheck --check-prefix=ENV1-SET-DIA %s25// RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb \26// RUN:     -o 'settings set plugin.symbol-file.pdb.reader native' \27// RUN:     -o 'target create %t.exe' \28// RUN:     -o 'target modules dump symfile' \29// RUN:     2>&1 | FileCheck --check-prefix=ENV0-SET-NATIVE %s30// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb \31// RUN:     -o 'settings set plugin.symbol-file.pdb.reader native' \32// RUN:     -o 'target create %t.exe' \33// RUN:     -o 'target modules dump symfile' \34// RUN:     2>&1 | FileCheck --check-prefix=ENV1-SET-NATIVE %s35 36// NO-ENV-NOT: warning:37// NO-ENV: (lldb) target modules dump symfile38// NO-ENV: Dumping debug symbols for 1 modules.39// NO-ENV: SymbolFile native-pdb40 41// ENV0: warning: the DIA PDB reader was explicitly requested, but LLDB was built without the DIA SDK. The native reader will be used instead42// ENV0: (lldb) target modules dump symfile43// ENV0: Dumping debug symbols for 1 modules.44// ENV0: SymbolFile native-pdb45 46// ENV1-NOT: warning:47// ENV1: (lldb) target modules dump symfile48// ENV1: Dumping debug symbols for 1 modules.49// ENV1: SymbolFile native-pdb50 51// ENV0-SET-DIA: warning: the DIA PDB reader was explicitly requested, but LLDB was built without the DIA SDK. The native reader will be used instead52// ENV0-SET-DIA: (lldb) target modules dump symfile53// ENV0-SET-DIA: Dumping debug symbols for 1 modules.54// ENV0-SET-DIA: SymbolFile native-pdb55 56// ENV1-SET-DIA: warning: the DIA PDB reader was explicitly requested, but LLDB was built without the DIA SDK. The native reader will be used instead57// ENV1-SET-DIA: (lldb) target modules dump symfile58// ENV1-SET-DIA: Dumping debug symbols for 1 modules.59// ENV1-SET-DIA: SymbolFile native-pdb60 61// ENV1-SET-NATIVE-NOT: warning:62// ENV0-SET-NATIVE: (lldb) target modules dump symfile63// ENV0-SET-NATIVE: Dumping debug symbols for 1 modules.64// ENV0-SET-NATIVE: SymbolFile native-pdb65 66// ENV1-SET-NATIVE-NOT: warning:67// ENV1-SET-NATIVE: (lldb) target modules dump symfile68// ENV1-SET-NATIVE: Dumping debug symbols for 1 modules.69// ENV1-SET-NATIVE: SymbolFile native-pdb70 71int main() {}72