davide added a comment.

I thought about this a little more, and we discussed offline, but these are my 
two comments (we should understand what's the behaviour and add tests). We can 
address some of them as follow-up but I would like to understand what happens 
here.

1. For C++, lldb names expression results using the convention `$0`, `$1`, 
etc... Can you have a variable named `$0` in your source code? If so, what 
happens when you evaluate `expr patatino`? Will lldb be smart enough to 
understand that `$0` is already defined and start with `$1` ? Or it will 
override the scope?
2. If you have `$pat` in your example, and you type `expr int $pat = 234234`, 
does that work?


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

Reply via email to