llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.96k stars 11.94k forks source link

clang: PDB generated from cross-compiled mingw targets don't have source lines for MS debuggers #58068

Open nedsociety opened 2 years ago

nedsociety commented 2 years ago

The generated PDB, when plugged into VS2022 debugging session, shows the following message when the debugger is stopped:

image

Note that the symbol names are somewhat available from the Call Stacks window below (Hyperspace.dll!__do_global_ctors()). The name isn't shown when the PDB is not present, so I guess PDB does provide symbol names but not source lines for some reason.

Expected behavior is that VS IDE should ask where the source file is.

llvmbot commented 2 years ago

@llvm/issue-subscribers-debuginfo