-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rust-lldb loses variable definition after printing myvar.inner
if breaking on function name
#120553
Comments
Realized |
Works just fine in gdb for me:
Rust-lldb doesn't want to load for me at all, but plain lldb works fine too. For reference I'm using lldb version 14.0.6.
|
If only gdb worked on aarch64-darwin! But thanks for prompting me to try other OS -- I can confirm that I do not see the bug using rust-lldb on x86_64-linux, so this may be isolated to one of darwin / aarch64 / aarch64-darwin. (Still repros for me on aarch64-darwin with lldb 16.0.6.) |
…lacrum Add rust-lldb pretty printing for Path and PathBuf Fixes rust-lang#120553 Fixes rust-lang#48462
…lacrum Add rust-lldb pretty printing for Path and PathBuf Fixes rust-lang#120553 Fixes rust-lang#48462
…crum Add rust-lldb pretty printing for Path and PathBuf Fixes rust-lang#120553 Fixes rust-lang#48462
…crum Add rust-lldb pretty printing for Path and PathBuf Fixes rust-lang#120553 Fixes rust-lang#48462
…crum Add rust-lldb pretty printing for Path and PathBuf Fixes rust-lang#120553 Fixes rust-lang#48462
…crum Add rust-lldb pretty printing for Path and PathBuf Fixes rust-lang#120553 Fixes rust-lang#48462
Add rust-lldb pretty printing for Path and PathBuf Fixes rust-lang/rust#120553 Fixes rust-lang/rust#48462
I tried this code (as package
foo
):Run the following, which will break at
main
, step the next 4 lines (n
) to define the variables, then printmy_path.inner
twice -- the first time will succeed, the second time will fail:I expected to see this happen:
po my_path.inner
would work the same no matter how many times I called it, instead everything seems to be undefined after the first call. Below I show thatframe var
seems to work (including multiple times),po my_str
works (including multiple times), but after a single call topo my_path.inner
, neither of these works anymore:Oddly, if I break on filename / line number instead of function name, it seems to work as expected:
Meta
I'm using
rust-lldb
from a git checkout from yesterday:The text was updated successfully, but these errors were encountered: