File tree Expand file tree Collapse file tree 4 files changed +17
-19
lines changed
source/Plugins/SymbolFile/PDB Expand file tree Collapse file tree 4 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ constexpr OptionEnumValueElement g_pdb_reader_enums[] = {
8383 {
8484 ePDBReaderDefault,
8585 " default" ,
86- " Use DIA PDB reader unless LLDB_USE_NATIVE_PDB_READER environment "
87- " variable is set" ,
86+ " Use native PDB reader unless LLDB_USE_NATIVE_PDB_READER environment "
87+ " is set to 0 " ,
8888 },
8989 {
9090 ePDBReaderDIA,
@@ -109,16 +109,10 @@ enum {
109109static const bool g_should_use_native_reader_by_default = [] {
110110 llvm::StringRef env_value = ::getenv (" LLDB_USE_NATIVE_PDB_READER" );
111111
112- #if !LLVM_ENABLE_DIA_SDK || !defined(_WIN32)
113- // if the environment value is unset, the native reader is requested
114- if (env_value.empty ())
115- return true ;
116- #endif
117-
118- return env_value.equals_insensitive (" on" ) ||
119- env_value.equals_insensitive (" yes" ) ||
120- env_value.equals_insensitive (" 1" ) ||
121- env_value.equals_insensitive (" true" );
112+ return !env_value.equals_insensitive (" off" ) &&
113+ !env_value.equals_insensitive (" no" ) &&
114+ !env_value.equals_insensitive (" 0" ) &&
115+ !env_value.equals_insensitive (" false" );
122116}();
123117
124118class PluginProperties : public Properties {
Original file line number Diff line number Diff line change 88// RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV0 %s
99// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s
1010
11- // RUN: env LLDB_USE_NATIVE_PDB_READER=foo %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV0 %s
12- // RUN: env LLDB_USE_NATIVE_PDB_READER=42 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV0 %s
13- // RUN: env LLDB_USE_NATIVE_PDB_READER=-1 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV0 %s
11+ // RUN: env LLDB_USE_NATIVE_PDB_READER=foo %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s
12+ // RUN: env LLDB_USE_NATIVE_PDB_READER=42 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s
13+ // RUN: env LLDB_USE_NATIVE_PDB_READER=-1 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s
1414
1515// RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb \
1616// RUN: -o 'settings set plugin.symbol-file.pdb.reader dia' \
Original file line number Diff line number Diff line change 88// RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV0 %s
99// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s
1010
11- // RUN: env LLDB_USE_NATIVE_PDB_READER=foo %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV0 %s
12- // RUN: env LLDB_USE_NATIVE_PDB_READER=42 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV0 %s
13- // RUN: env LLDB_USE_NATIVE_PDB_READER=-1 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV0 %s
11+ // RUN: env LLDB_USE_NATIVE_PDB_READER=foo %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s
12+ // RUN: env LLDB_USE_NATIVE_PDB_READER=42 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s
13+ // RUN: env LLDB_USE_NATIVE_PDB_READER=-1 %lldb %t.exe -o 'target modules dump symfile' 2>&1 | FileCheck --check-prefix=ENV1 %s
1414
1515// RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb \
1616// RUN: -o 'settings set plugin.symbol-file.pdb.reader dia' \
3636// NO-ENV-NOT: warning:
3737// NO-ENV: (lldb) target modules dump symfile
3838// NO-ENV: Dumping debug symbols for 1 modules.
39- // NO-ENV: SymbolFile pdb
39+ // NO-ENV: SymbolFile native- pdb
4040
4141// ENV0-NOT: warning:
4242// ENV0: (lldb) target modules dump symfile
Original file line number Diff line number Diff line change @@ -191,6 +191,10 @@ Changes to LLDB
191191* The ` show-progress ` setting, which became a NOOP with the introduction of the
192192 statusline, now defaults to off and controls using OSC escape codes to show a
193193 native progress bar in supporting terminals like Ghostty and ConEmu.
194+ * The default PDB reader on Windows was changed from DIA to native, which uses
195+ LLVM's PDB and CodeView support. You can switch back to the DIA reader with
196+ ` settings set plugin.symbol-file.pdb.reader dia ` . Note that support for the
197+ DIA reader will be removed in a future version of LLDB.
194198
195199Changes to BOLT
196200---------------------------------
You can’t perform that action at this time.
0 commit comments