[Lldb-commits] [PATCH] D127702: Support logpoints in lldb-vscode
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 13 16:23:23 PDT 2022
clayborg added inline comments.
================
Comment at: lldb/tools/lldb-vscode/BreakpointBase.cpp:126
+ const llvm::StringRef &expr = bp->evalExpressions[i];
+ // TODO: try local variables first.
+ lldb::SBValue value = frame.EvaluateExpression(expr.str().c_str());
----------------
I would definitely try an local variable paths first via:
```
lldb::SBValue value = frame.GetValueForVariablePath(part.text.str().c_str(), lldb::eDynamicDontRunTarget);
```
before doing the evaluate expression due to performance which will be important in this case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127702/new/
https://reviews.llvm.org/D127702
More information about the lldb-commits
mailing list