[Lldb-commits] [lldb] [lldb] Add a progress event for executing an expression (PR #119757)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 12 13:16:38 PST 2024
================
@@ -424,6 +425,14 @@ UserExpression::Execute(DiagnosticManager &diagnostic_manager,
const EvaluateExpressionOptions &options,
lldb::UserExpressionSP &shared_ptr_to_me,
lldb::ExpressionVariableSP &result_var) {
+ Debugger *debugger =
+ exe_ctx.GetTargetPtr() ? &exe_ctx.GetTargetPtr()->GetDebugger() : nullptr;
+ Progress progress("Running expression",
+ m_options.IsForUtilityExpr()
+ ? "(LLDB utility)"
+ : m_expr_text.substr(0, 12) + "...",
----------------
JDevlieghere wrote:
This will render ellipsis even if the expression is shorter than 12 characters.
```suggestion
: m_expr_text.size() > 12 : substr(0, 12) + "..." : m_expr_size(),
```
https://github.com/llvm/llvm-project/pull/119757
More information about the lldb-commits
mailing list