-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Can't step into libstd with gdb on Windows #38257
Copy link
Copy link
Open
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.O-windows-gnuToolchain: GNU, Operating system: WindowsToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.O-windows-gnuToolchain: GNU, Operating system: WindowsToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
When I try to step in, I get:
Source C:\bot\slave\nightly-dist-rustc-win-gnu-64\build\obj\../src/libcollections/string.rs is not available.When I set a breakpoint in string.rs and start a debug session, I get the error:
No source file named d:\dev\gnu\rust\src\libcollections\string.rs.Note: this does not mean the file doesn't exist on the filesystem, it means it's not in the debug binary.
Workaround:
Set
RUST_SRC_PATH=C:\bot\slave\nightly-dist-rustc-win-gnu-64\build\srcEither:
C:\bot\slave\nightly-dist-rustc-win-gnu-64\build\src