[Lldb-commits] [lldb] [lldb][NativePDB] Name global variables like Clang and DWARF do (PR #230563)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 16 10:59:47 PDT 2026
================
@@ -2224,11 +2236,16 @@ void SymbolFileNativePDB::FindGlobalVariables(
CacheGlobalBaseNames();
+ // A leading "::" requests a variable from the global namespace.
+ llvm::StringRef lookup_name = name.GetStringRef();
+ bool is_rooted = lookup_name.consume_front("::");
----------------
Nerixyz wrote:
I see, so DWARF is wrong here.
https://github.com/llvm/llvm-project/pull/230563
More information about the lldb-commits
mailing list