-
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
Trouble calling a function from a debugger #12868
Comments
I'm not sure if this is the fault of some debuginfo, or possibly that the default OSX lldb is a little out of date. Some other things that I did:
|
This may also be an lldb bug, I'm unsure |
If Rust is still dealing with return values through an outparam, DWARF does not appear to have a way to represent that. Function return values in gdb are always meaningless. |
Rust only uses an out parameter for what it calls non-immediate types. An |
Mind that calling functions in the debugger is explicitly not supported at the moment. This will definitely be interesting in the future but it isn't a high priority right now. |
Triage: today, a different error:
|
Updated test
It looks to me like the paths in the debugger want to be crate-prefixed today. Results in gdb on Ubuntu 16.04:
Results in lldb on Ubuntu 16.04:
|
This seems to work fine with current rust?
|
@alexcrichton: This appears to be fixed according to @xanlpz? |
Ok! |
Replace `debug_assert!` with `stdx::always!` Addresses rust-lang/rust-analyzer#12832 (comment)
chore: fix some comments fix some comments ---- changelog: none
Output of a session of mine:
cc @michaelwoerister
The text was updated successfully, but these errors were encountered: