teemperor marked an inline comment as done. teemperor added inline comments.
================ Comment at: lldb/packages/Python/lldbsuite/test/expression_command/dollar-in-variable/main.c:4-5 +int main() { + int $foo = 42; + return 0; //%self.expect("expr $foo", substrs=['(int) $0 = 42']) +} ---------------- davide wrote: > davide wrote: > > what if you have another variable in the same scope named just `foo` ? > > What `expr $foo` will print? > > I would expect this to be recognized as `expr $$foo`. > Actually, I think the previous example should be fine, on a second thought. > The example that I think might break is the one where you have an identifier > in your source code named `$R0.` Is that allowed? Is `$R0` supposed to access a register? Or is that somehow a special syntax? In any case the current code will prefer a local variable with from what I can see. Repository: rLLDB LLDB CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64194/new/ https://reviews.llvm.org/D64194 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits