[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
Thu Jul 4 09:43:57 PDT 2019
davide requested changes to this revision.
davide added inline comments.
This revision now requires changes to proceed.
================
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'])
+}
----------------
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`.
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