https://sourceware.org/bugzilla/show_bug.cgi?id=30493
Bug ID: 30493 Summary: PDB files generated by ld --pdb do not work with the Visual Studio debugger Product: binutils Version: 2.40 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: tkacvins at gmail dot com Target Milestone: --- This is a placeholder for an issue I have with PDB files generated by ld --pdb. I am using MSYS2 + MinGW-w64, with a built for source GCC 12.1.0 and binutils 2.40. I am not using the distribution's toolchain. But I _think_ this should reproduce if you use the latest MSYS2 + MinGW-w64 x86_64 toolchain. The issue is the PDB file being usable in the Visual Studio debugger. The PDB loads and I can hit breakpoints, but there is no source display when I hit the breakpoint. I will upload the PDB files as generated by GCC and Visual Studio for analysis. I will also use clang to generate a PDB file and see if that works with the Visual Studio debugger. If you want to try to reproduce before I can upload the files (which would be around June 6th), a simple hello world reproduced exhibits the problem. gcc -o hello -Wl,--pdb hello.c Then debug with Visual Studio's devenv devenv /debugexe hello.exe and set a break point on main and start debugging. You will break on main, but there will be no source display. -- You are receiving this mail because: You are on the CC list for the bug.