[Lldb-commits] [PATCH] D64194: [lldb] Fix crash due to dollar character in variable names.
Davide Italiano via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 5 10:42:55 PDT 2019
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
More information about the lldb-commits
mailing list