Closed
Description
Debugging code from https://github.com/mozilla-servo/rust-mozjs/, if I set a breakpoint in gdb inside gc_callback in rust.rs I see messages like Breakpoint 2 at 0x408fad: rust.rs:70. (26 locations)
. This correctly breaks on the line, but trying to advance continues to break on the line each time in inlined code like transmute and borrow.
Activity
michaelwoerister commentedon Mar 14, 2014
Good catch! I think I had a patch once that would turn off emitting source locations for inlined functions but it will probably be bit-rotted by now. I'll look into it next!
debuginfo: Improve source code position assignment for inlined functi…
michaelwoerister commentedon Apr 10, 2014
Can we try to come up with some minimal code to reproduce this behavior reliably? As @alexcrichton pointed out, it would be great to have an autotest before closing the issue.
jdm commentedon Apr 10, 2014
michaelwoerister commentedon Apr 10, 2014
Wow, that was quick
:)
Thanks a lot!
michaelwoerister commentedon Apr 10, 2014
At least for this example the issue seems to be fixed after PR #13441 has landed. I'll add this to the autotests next week and then, I think, we can close this issue.
debuginfo: Improve source code position assignment for inlined functi…
auto merge of #13443 : alexcrichton/rust/rollup, r=alexcrichton
debuginfo: Add a test case for issue rust-lang#12886.
auto merge of #13556 : michaelwoerister/rust/various-fixes, r=alexcri…
Auto merge of rust-lang#12886 - Veykril:sema-cache, r=Veykril
Auto merge of rust-lang#12886 - GuillaumeGomez:fix-needless_character…