-
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.)A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Description
Compile the following with -g
flag, then try stepping line-by-line in gdb:
fn main() {
let a = 42
println!("The answer = {}", a);
println!("The end!");
}
After each printlt!()
statement the execution point jumps to the first line of the function.
Examination of LLVM IR shows that much of the fmt::Arguments
construction code has no line debug metadata attached to it (or at least that's what I think that code does).
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)