-
Notifications
You must be signed in to change notification settings - Fork 13.4k
"errror: reference to '...' is ambiguous" message in LLDB #47938
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Just found this bug. Is there a workaround / something you can pass to lldb to make it print the local variable? |
I have encountered this bug as well. |
|
Having a pair of single quotation mark around the variable name can solve this issue, but I found this trick by randomly trying and I reached this issue when I'm digging more into this issue... |
I was able to get the info by first just directly printing out the memory address for the object: example (
|
Any update on this? |
I ran into this running the It looks like I can always repro with a program like this: fn main() {
let ascii = 123;
println!("hi");
} After breaking at
It looks like I can repro this by having my local var shadow any direct submodule of This may be related to this lldb (todo) "project": Fix local variable lookup in the lldb expression parser In lldb,
— https://lldb.llvm.org/use/tutorial.html#examining-stack-frame-state It also looks like this project, if completed, would at least provide a workaround: Expression parser needs syntax for “{symbol,type} A in CU B.cpp” |
See also:
— http://lists.llvm.org/pipermail/lldb-dev/2016-June/010623.html |
LLDB's expression parser can't unambiguously resolve local variables in some cases, as described in rust-lang#47938. Work around this by using names that don't shadow direct submodules of `core`.
…050, r=alexcrichton Rename test locals to work around LLDB bug LLDB's expression parser can't unambiguously resolve local variables in some cases, as described in rust-lang#47938. Work around this by using names that don't shadow direct submodules of `core`. Closes rust-lang#64050.
…050, r=alexcrichton Rename test locals to work around LLDB bug LLDB's expression parser can't unambiguously resolve local variables in some cases, as described in rust-lang#47938. Work around this by using names that don't shadow direct submodules of `core`. Closes rust-lang#64050.
…050, r=alexcrichton Rename test locals to work around LLDB bug LLDB's expression parser can't unambiguously resolve local variables in some cases, as described in rust-lang#47938. Work around this by using names that don't shadow direct submodules of `core`. Closes rust-lang#64050.
When I try to print a local variable in LLDB, e.g. with
po foo
, and there's a function with the same name, I get this message:The text was updated successfully, but these errors were encountered: