-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Stepping with "next" in a debugger skips past end-of-scope drops #128971
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-bugCategory: This is a bug.Category: This is a bug.T-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.WG-debuggingWorking group: Bad Rust debugging experiencesWorking group: Bad Rust debugging experiences
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.Category: This is a bug.T-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.WG-debuggingWorking group: Bad Rust debugging experiencesWorking group: Bad Rust debugging experiences
Type
Fields
Give feedbackNo fields configured for issues without a type.
I am trying to re-enable a lot of disabled debuginfo tests, and in doing that I learned that
tests/debuginfo/drop-locationshttps://github.com/rust-lang/rust/blob/c9bd03cb724e13cca96ad320733046cbdb16fbbe/tests/debuginfo/drop-locations.rs was broken at some point in the past 6 years. No idea when, I will not be doing a bisection.The bug is that in code like this:
stepping through this with the gdb command
nextshould step from theString::fromcall to the close brace. Butgdbnever stops on the close brace, even though there is indeed a call todrop_in_placefor the String, and the debuginfo for the call correctly points at the close brace.