-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line-based breakpoints set dozens of unwanted ones #12886
Comments
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! |
…ons. This commit makes sure that code inlined from other functions isn't assigned the source position of the call site, since this leads to undesired behavior when setting line breakpoints (issue rust-lang#12886)
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. |
fn bar() -> int {
let s = Some(5).unwrap();
s
}
fn main() {
let _ = bar();
}
|
Wow, that was quick |
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. |
…ons. This commit makes sure that code inlined from other functions isn't assigned the source position of the call site, since this leads to undesired behavior when setting line breakpoints (issue rust-lang#12886)
Closes #13441 (debuginfo: Fixes and improvements for #12840, #12886, and #13213) Closes #13433 (Remove references to @trait from a compiler error message) Closes #13430 (Fix outdated lint warning about inner attribute) Closes #13425 (Remove a pile of (mainly) internal `~[]` uses) Closes #13419 (Stop using transmute_mut in RefCell) Closes #13417 (Remove an unnecessary file `src/libnative/io/p`.) Closes #13409 (Closing assorted resolve bugs) Closes #13406 (Generalized the pretty-print entry points to support `-o <file>`.) Closes #13403 (test: Add a test for #7663) Closes #13402 (rustdoc: Prune the paths that do not appear in the index.) Closes #13396 (rustc: Remove absolute rpaths) Closes #13371 (Rename ast::Purity and ast::Impure Function. Closes #7287) Closes #13350 (collections: replace all ~[T] with Vec<T>.)
fix: Fix Semantics::original_ast_node not caching the resulting file
…_iteration, r=blyxyas Fix false positive for `needless_character_iteration` lint Fixes rust-lang#12879. changelog: Fix false positive for `needless_character_iteration` lint
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.The text was updated successfully, but these errors were encountered: