[all-commits] [llvm/llvm-project] 3222f9: [LLDB][NativePDB] Convert backslash to slash when ...

Zequan Wu via All-commits all-commits at lists.llvm.org
Mon Jun 13 12:04:42 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3222f95ea8c4de153f908c138cdec178e22acaf4
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp

  Log Message:
  [LLDB][NativePDB] Convert backslash to slash when creating CU and filter out CU with no function in ResolveSymbolContext.

On Windows, when compile with -fdebug-compilation-dir which contains slash, the source file path in PDB will look like "../tmp\file.cc" because the path separator used is determined by target machine. Converting backslash to slash helps lldb to find the CU in ResolveSymbolContext.

We want to filter out CU with no function in ResolveSymbolContext as a cpp file will have two debug info modules in PDB if built with thinlto and one of them is a skeleton with no function debug info.

More information about the All-commits mailing list