-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)
Description
With a simple setup like
pub fn f() {
io::println("foo");
}
pub fn main() {
f();
}
breaking in main and stepping into f yields odd behaviour in gdb. Specifically, the first step into f shows pub fn main() {
, the second shows f();
, and the third takes us to the proper io::println("foo");
. Disassembling at each step shows the first step takes us inside f
into its prelude, so obviously we're not updating the source position correctly when generating the function.
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)