[Lldb-commits] [lldb] [LLDB][NativePDB] Set IsDynmaicCXXType metadata for records (PR #155853)
via lldb-commits
lldb-commits at lists.llvm.org
Sat Aug 30 03:08:47 PDT 2025
================
@@ -118,7 +118,10 @@ loadMatchingPDBFile(std::string exe_path, llvm::BumpPtrAllocator &allocator) {
// executable.
if (!FileSystem::Instance().Exists(pdb_file)) {
const auto exe_dir = FileSpec(exe_path).CopyByRemovingLastPathComponent();
- const auto pdb_name = FileSpec(pdb_file).GetFilename().GetCString();
+ const auto pdb_path_style =
+ FileSpec::GuessPathStyle(pdb_file).value_or(FileSpec::Style::native);
+ const auto pdb_name =
+ FileSpec(pdb_file, pdb_path_style).GetFilename().GetCString();
----------------
Nerixyz wrote:
This is required for the tests to run on non-Windows OSs. The executable contains the path to the PDB file. This is the absolute path as built on my machine. However, this is a Windows path with backslashes. `FileSpec` uses the native style as a default. On Windows, that works fine, but it breaks on other OSs.
https://github.com/llvm/llvm-project/pull/155853
More information about the lldb-commits
mailing list