Skip to content

Commit cf3464b

Browse files
authored
[lldb] Set LLDB_USE_NATIVE_PDB_READER at the directory level (#114455)
Lit allows you to set environment variables for all tests in a directory using a `lit.local.cfg` file. Do this for the PDB and NativePDB tests.
1 parent e241964 commit cf3464b

40 files changed

+43
-42
lines changed

lldb/test/Shell/SymbolFile/NativePDB/ast-functions-msvc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
// RUN: %build --compiler=msvc --nodefaultlib -o %t.exe -- %S/ast-functions.cpp
55

6-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
6+
// RUN: %lldb -f %t.exe -s \
77
// RUN: %p/Inputs/ast-functions.lldbinit 2>&1 | FileCheck %S/ast-functions.cpp

lldb/test/Shell/SymbolFile/NativePDB/ast-functions.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
55
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
66

7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
8-
// RUN: %p/Inputs/ast-functions.lldbinit 2>&1 | FileCheck %s
7+
// RUN: %lldb -f %t.exe -s %p/Inputs/ast-functions.lldbinit 2>&1 | FileCheck %s
98

109
static int static_fn() {
1110
return 42;

lldb/test/Shell/SymbolFile/NativePDB/ast-methods.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -GR- -c /Fo%t.obj -- %s
55
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
6-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
6+
// RUN: %lldb -f %t.exe -s \
77
// RUN: %p/Inputs/ast-methods.lldbinit 2>&1 | FileCheck %s --check-prefix=AST
88

9-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols --dump-ast %t.exe | FileCheck %s --check-prefix=SYMBOL
9+
// RUN: lldb-test symbols --dump-ast %t.exe | FileCheck %s --check-prefix=SYMBOL
1010

1111
struct Struct {
1212
void simple_method() {}

lldb/test/Shell/SymbolFile/NativePDB/ast-types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test various interesting cases for AST reconstruction.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
7+
// RUN: %lldb -f %t.exe -s \
88
// RUN: %p/Inputs/ast-types.lldbinit 2>&1 | FileCheck %s
99

1010
// Test trivial versions of each tag type.

lldb/test/Shell/SymbolFile/NativePDB/bitfields.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test various interesting cases for AST reconstruction.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
7+
// RUN: %lldb -f %t.exe -s \
88
// RUN: %p/Inputs/bitfields.lldbinit 2>&1 | FileCheck %s
99

1010
// Test trivial versions of each tag type.

lldb/test/Shell/SymbolFile/NativePDB/blocks.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test block range is set.
55
// RUN: llvm-mc -triple=x86_64-windows-msvc --filetype=obj %s > %t.obj
66
// RUN: lld-link /debug:full /nodefaultlib /entry:main %t.obj /out:%t.exe /base:0x140000000
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb %t.exe -o "image lookup -a 0x140001014 -v" -o "exit" | FileCheck %s
7+
// RUN: %lldb %t.exe -o "image lookup -a 0x140001014 -v" -o "exit" | FileCheck %s
88

99
// CHECK: Function: id = {{.*}}, name = "main", range = [0x0000000140001000-0x0000000140001044)
1010
// CHECK-NEXT: FuncType: id = {{.*}}, byte-size = 0, compiler_type = "int (void)"

lldb/test/Shell/SymbolFile/NativePDB/break-by-function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test that we can set simple breakpoints using PDB on any platform.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
7+
// RUN: %lldb -f %t.exe -s \
88
// RUN: %p/Inputs/break-by-function.lldbinit | FileCheck %s
99

1010
// Use different indentation style for each overload so that the starting

lldb/test/Shell/SymbolFile/NativePDB/break-by-line.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test that we can set simple breakpoints using PDB on any platform.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
7+
// RUN: %lldb -f %t.exe -s \
88
// RUN: %p/Inputs/break-by-line.lldbinit | FileCheck %s
99

1010
// This is a separate test from break-by-function.cpp because this test is

lldb/test/Shell/SymbolFile/NativePDB/class_layout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Make sure class layout is correct.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
7+
// RUN: %lldb -f %t.exe -s \
88
// RUN: %p/Inputs/class_layout.lldbinit 2>&1 | FileCheck %s
99

1010
// CHECK: (lldb) expr a

lldb/test/Shell/SymbolFile/NativePDB/disassembly.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test that we can show disassembly and source.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
7+
// RUN: %lldb -f %t.exe -s \
88
// RUN: %p/Inputs/disassembly.lldbinit | FileCheck %s
99

1010
// Some context lines before the function.

lldb/test/Shell/SymbolFile/NativePDB/function-types-builtins.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
55
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
6-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
6+
// RUN: %lldb -f %t.exe -s \
77
// RUN: %p/Inputs/function-types-builtins.lldbinit | FileCheck %s
88

99
// Test that we can display function signatures with simple builtin

lldb/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// RUN: %clang_cl --target=i386-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
55
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
6-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
6+
// RUN: %lldb -f %t.exe -s \
77
// RUN: %p/Inputs/function-types-calling-conv.lldbinit | FileCheck %s
88

99

lldb/test/Shell/SymbolFile/NativePDB/function-types-classes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test that we can display function signatures with class types.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
7+
// RUN: %lldb -f %t.exe -s \
88
// RUN: %p/Inputs/function-types-classes.lldbinit | FileCheck %s
99

1010
// This is just some unimportant helpers needed so that we can get reference and

lldb/test/Shell/SymbolFile/NativePDB/global-classes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 \
66
// RUN: -Xclang -fkeep-static-consts -c /Fo%t.obj -- %s
77
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
8-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
8+
// RUN: %lldb -f %t.exe -s \
99
// RUN: %p/Inputs/globals-classes.lldbinit | FileCheck %s
1010

1111
enum class EnumType : unsigned {

lldb/test/Shell/SymbolFile/NativePDB/global-ctor-dtor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Global ctor and dtor should be globals decls.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -GS- -fno-addrsig -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb -force
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols --dump-ast %t.exe | FileCheck %s
7+
// RUN: lldb-test symbols --dump-ast %t.exe | FileCheck %s
88

99
struct A {
1010
~A() {};

lldb/test/Shell/SymbolFile/NativePDB/globals-bss.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
77
// RUN: llvm-readobj -S %t.exe | FileCheck --check-prefix=BSS %s
8-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
8+
// RUN: %lldb -f %t.exe -s \
99
// RUN: %p/Inputs/globals-bss.lldbinit 2>&1 | FileCheck %s
1010

1111
int GlobalVariable = 0;

lldb/test/Shell/SymbolFile/NativePDB/globals-fundamental.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 \
66
// RUN: -Xclang -fkeep-static-consts -c /Fo%t.obj -- %s
77
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
8-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
8+
// RUN: %lldb -f %t.exe -s \
99
// RUN: %p/Inputs/globals-fundamental.lldbinit | FileCheck %s
1010

1111

lldb/test/Shell/SymbolFile/NativePDB/icf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test lldb finds the correct parent context decl for functions and class methods when icf happens.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -GS- -fno-addrsig -c /Fo%t.obj -- %s
66
// RUN: lld-link -opt:icf -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols --dump-ast %t.exe | FileCheck %s
7+
// RUN: lldb-test symbols --dump-ast %t.exe | FileCheck %s
88

99
struct A {
1010
int f1(int x) {

lldb/test/Shell/SymbolFile/NativePDB/incomplete-tag-type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %clang_cl --target=x86_64-windows-msvc -c /Fo%t1.obj -- %p/Inputs/incomplete-tag-type.cpp
55
// RUN: %clang_cl --target=x86_64-windows-msvc /O1 /Z7 -c /Fo%t2.obj -- %s
66
// RUN: lld-link /debug:full /nodefaultlib /entry:main %t1.obj %t2.obj /out:%t.exe /pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -o \
7+
// RUN: %lldb -f %t.exe -o \
88
// RUN: "settings set interpreter.stop-command-source-on-error false" \
99
// RUN: -o "expression b" -o "expression d" -o "expression static_e_ref" -o "exit" 2>&1 | FileCheck %s
1010

lldb/test/Shell/SymbolFile/NativePDB/inline_sites.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# RUN: llvm-mc -triple=x86_64-windows-msvc --filetype=obj %p/Inputs/inline_sites.s > %t.obj
55
# RUN: lld-link -debug:full -nodefaultlib -entry:main -base:0x140000000 %t.obj -out:%t.exe
6-
# RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
6+
# RUN: %lldb -f %t.exe -s \
77
# RUN: %p/Inputs/inline_sites.lldbinit 2>&1 | FileCheck %s
88

99
# CHECK: (lldb) image dump line-table a.cpp -v

lldb/test/Shell/SymbolFile/NativePDB/inline_sites_live.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// REQUIRES: system-windows
33

44
// RUN: %build -o %t.exe -- %s
5-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
5+
// RUN: %lldb -f %t.exe -s \
66
// RUN: %p/Inputs/inline_sites_live.lldbinit 2>&1 | FileCheck %s
77

88
void use(int) {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.environment["LLDB_USE_NATIVE_PDB_READER"] = "1"

lldb/test/Shell/SymbolFile/NativePDB/load-pdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// RUN: -out:%t/executable/foo.exe -pdb:%t/executable/foo.pdb
1111
// Rename the PDB file so that the name is different from the name inside the executable (foo.exe).
1212
// RUN: mv %t/executable/foo.pdb %t/executable/bar.pdb
13-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb %t/executable/foo.exe \
13+
// RUN: %lldb %t/executable/foo.exe \
1414
// RUN: -o "target symbols add %t/executable/bar.pdb" \
1515
// RUN: -o "b main" \
1616
// RUN: -o "image dump symfile" -o "quit" | FileCheck %s

lldb/test/Shell/SymbolFile/NativePDB/local-variables-registers.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# RUN: llvm-mc -triple=x86_64-windows-msvc --filetype=obj %s > %t.obj
55
# RUN: lld-link /debug:full /nodefaultlib /entry:main %t.obj /out:%t.exe /base:0x140000000
6-
# RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
6+
# RUN: %lldb -f %t.exe -s \
77
# RUN: %p/Inputs/local-variables-registers.lldbinit 2>&1 | FileCheck %s
88

99
# This file is compiled from following source file:

lldb/test/Shell/SymbolFile/NativePDB/local-variables.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// REQUIRES: system-windows
44
// RUN: %build -o %t.exe -- %s
5-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
5+
// RUN: %lldb -f %t.exe -s \
66
// RUN: %p/Inputs/local-variables.lldbinit 2>&1 | FileCheck %s
77

88
int Function(int Param1, char Param2) {

lldb/test/Shell/SymbolFile/NativePDB/locate-pdb.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
// RUN: -out:%t/executable/foo.exe -pdb:%t/symbols/bar.pdb
1818

1919
// Find the PDB in its build location
20-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t/executable/foo.exe -s \
20+
// RUN: %lldb -f %t/executable/foo.exe -s \
2121
// RUN: %p/Inputs/locate-pdb.lldbinit | FileCheck %s
2222

2323
// Also find the PDB when it's adjacent to the executable
2424
// RUN: mv -f %t/symbols/bar.pdb %t/executable/bar.pdb
25-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t/executable/foo.exe -s \
25+
// RUN: %lldb -f %t/executable/foo.exe -s \
2626
// RUN: %p/Inputs/locate-pdb.lldbinit | FileCheck %s
2727

2828
int main(int argc, char** argv) {

lldb/test/Shell/SymbolFile/NativePDB/lookup-by-address.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -GR- -c /Fo%t.obj -- %s
55
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -base:0x400000 -out:%t.exe -pdb:%t.pdb
6-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -O "target create %t.exe" -o "image lookup -a 0x401000" -o "exit" | FileCheck %s --check-prefix=ADDRESS
6+
// RUN: %lldb -O "target create %t.exe" -o "image lookup -a 0x401000" -o "exit" | FileCheck %s --check-prefix=ADDRESS
77
int main(int argc, char **argv) {
88
return 0;
99
}

lldb/test/Shell/SymbolFile/NativePDB/lookup-by-types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// clang-format off
22

33
// RUN: %build -o %t.exe -- %s
4-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
4+
// RUN: %lldb -f %t.exe -s \
55
// RUN: %p/Inputs/lookup-by-types.lldbinit 2>&1 | FileCheck %s
66

77
class B;

lldb/test/Shell/SymbolFile/NativePDB/nested-blocks-same-address.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Test when nested S_BLOCK32 have same address range, ResolveSymbolContext should return the innnermost block.
55
# RUN: llvm-mc -triple=x86_64-windows-msvc --filetype=obj %s > %t.obj
66
# RUN: lld-link /debug:full /nodefaultlib /entry:main %t.obj /out:%t.exe /base:0x140000000
7-
# RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -o "image lookup -a 0x14000103c -v" -o "exit" | FileCheck %s
7+
# RUN: %lldb -f %t.exe -o "image lookup -a 0x14000103c -v" -o "exit" | FileCheck %s
88

99
# This file is compiled from following source file:
1010
# $ clang-cl /Z7 /GS- /c /O2 test.cpp /Fatest.s

lldb/test/Shell/SymbolFile/NativePDB/nested-types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 \
66
// RUN: -Xclang -fkeep-static-consts -c /Fo%t.obj -- %s
77
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
8-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
8+
// RUN: %lldb -f %t.exe -s \
99
// RUN: %p/Inputs/nested-types.lldbinit 2>&1 | FileCheck %s
1010

1111
struct S {

lldb/test/Shell/SymbolFile/NativePDB/s_constant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-win32 %p/Inputs/s_constant.s > %t.obj
77
// RUN: %build --compiler=clang-cl --nodefaultlib --mode=link -o %t.exe -- %t.obj
8-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
8+
// RUN: %lldb -f %t.exe -s \
99
// RUN: %p/Inputs/s_constant.lldbinit | FileCheck %s
1010

1111
// clang-cl cannot generate S_CONSTANT records, but we need to test that we can

lldb/test/Shell/SymbolFile/NativePDB/source-list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test that we can set display source of functions.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
7+
// RUN: %lldb -f %t.exe -s \
88
// RUN: %p/Inputs/source-list.lldbinit | FileCheck %s
99

1010

lldb/test/Shell/SymbolFile/NativePDB/stack_unwinding01.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// REQUIRES: lld, system-windows
33

44
// RUN: %build --compiler=clang-cl --nodefaultlib -o %t.exe -- %s
5-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
5+
// RUN: %lldb -f %t.exe -s \
66
// RUN: %p/Inputs/stack_unwinding01.lldbinit 2>&1 | FileCheck %s
77

88

lldb/test/Shell/SymbolFile/NativePDB/tag-types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test that we can display tag types.
55
// RUN: %clang_cl --target=x86_64-windows-msvc -GS- -Od -Z7 -c /Fo%t.obj -- %s
66
// RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb
7-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
7+
// RUN: %lldb -f %t.exe -s \
88
// RUN: %p/Inputs/tag-types.lldbinit | FileCheck %s
99

1010
// Test struct

lldb/test/Shell/SymbolFile/NativePDB/typedefs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// REQUIRES: system-windows
44
// RUN: %build --compiler=clang-cl --nodefaultlib -o %t.exe -- %s
5-
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck %s
5+
// RUN: lldb-test symbols -dump-ast %t.exe | FileCheck %s
66

77
namespace A {
88
namespace B {

lldb/test/Shell/SymbolFile/PDB/ast-restore.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
REQUIRES: system-windows, msvc
22
RUN: %build --compiler=msvc --nodefaultlib --output=%t.exe %S/Inputs/AstRestoreTest.cpp
3-
RUN: env LLDB_USE_NATIVE_PDB_READER=0 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=ENUM %s
3+
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=ENUM %s
44
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=ENUM %s
55
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=GLOBAL %s
66
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=BASE %s
7-
RUN: env LLDB_USE_NATIVE_PDB_READER=0 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=CLASS %s
7+
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=CLASS %s
88
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=CLASS %s
99
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=INNER %s
1010
RUN: lldb-test symbols -dump-ast %t.exe | FileCheck --check-prefix=TEMPLATE %s

lldb/test/Shell/SymbolFile/PDB/compilands.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ REQUIRES: system-windows, msvc
22
RUN: %build --compiler=clang-cl --mode=compile --arch=32 --nodefaultlib --output=%T/CompilandsTest.cpp.obj %S/Inputs/CompilandsTest.cpp
33
RUN: %build --compiler=msvc --mode=link --arch=32 --nodefaultlib --output=%T/CompilandsTest.cpp.exe %T/CompilandsTest.cpp.obj
44
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols %T/CompilandsTest.cpp.exe | FileCheck %s
5-
RUN: env LLDB_USE_NATIVE_PDB_READER=0 lldb-test symbols %T/CompilandsTest.cpp.exe | FileCheck %s
5+
RUN: lldb-test symbols %T/CompilandsTest.cpp.exe | FileCheck %s
66

77
; Link default libraries
88

lldb/test/Shell/SymbolFile/PDB/function-level-linking.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ REQUIRES: system-windows, lld
22
RUN: %clang_cl_host /c /Zi /Gy %S/Inputs/FunctionLevelLinkingTest.cpp /o %t.obj
33
RUN: lld-link /debug:full /nodefaultlib /entry:main /order:@%S/Inputs/FunctionLevelLinkingTest.ord %t.obj /out:%t.exe
44
RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -verify %t.exe
5-
RUN: env LLDB_USE_NATIVE_PDB_READER=0 lldb-test symbols -verify %t.exe
5+
RUN: lldb-test symbols -verify %t.exe
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.environment["LLDB_USE_NATIVE_PDB_READER"] = "0"

lldb/test/Shell/SymbolFile/PDB/variables-locations.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
REQUIRES: system-windows, lld
22
RUN: %build --compiler=clang-cl --output=%t.exe %S/Inputs/VariablesLocationsTest.cpp
3-
RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb -b -s %S/Inputs/VariablesLocationsTest.script -- %t.exe | FileCheck %s
3+
RUN: %lldb -b -s %S/Inputs/VariablesLocationsTest.script -- %t.exe | FileCheck %s
44
RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -b -s %S/Inputs/VariablesLocationsTest.script -- %t.exe | FileCheck %s
55

66
CHECK: g_var = 2222

0 commit comments

Comments
 (0)