Closed
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).