[Lldb-commits] [lldb] [lldb] Don't trim expression in progress event (PR #174609)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 6 07:31:27 PST 2026
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/174609
Trimming the content of the progress event is the responsibility of the consumer, not the producer. For example, when using the statusline, there's plenty of space to show longer expressions.
rdar://166879951
>From 148e3f38e9eed814b5b1d7cf960af511aecd9f16 Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jonas at devlieghere.com>
Date: Mon, 5 Jan 2026 11:45:32 -0600
Subject: [PATCH] [lldb] Don't trim expression in progress event
Trimming the content of the progress event is the responsibility of the
consumer, not the producer. When using the statusline, there's plenty of
space to show longer expressions.
rdar://166879951
---
lldb/source/Expression/UserExpression.cpp | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/lldb/source/Expression/UserExpression.cpp b/lldb/source/Expression/UserExpression.cpp
index 5563eba21777e..ff7a356dbbb1e 100644
--- a/lldb/source/Expression/UserExpression.cpp
+++ b/lldb/source/Expression/UserExpression.cpp
@@ -427,15 +427,10 @@ UserExpression::Execute(DiagnosticManager &diagnostic_manager,
lldb::ExpressionVariableSP &result_var) {
Debugger *debugger =
exe_ctx.GetTargetPtr() ? &exe_ctx.GetTargetPtr()->GetDebugger() : nullptr;
- std::string details;
- if (m_options.IsForUtilityExpr())
- details = "LLDB utility";
- else if (m_expr_text.size() > 15)
- details = m_expr_text.substr(0, 14) + "…";
- else
- details = m_expr_text;
- Progress progress("Running expression", details, {}, debugger);
+ Progress progress("Running expression",
+ m_options.IsForUtilityExpr() ? "LLDB utility" : m_expr_text,
+ {}, debugger);
lldb::ExpressionResults expr_result = DoExecute(
diagnostic_manager, exe_ctx, options, shared_ptr_to_me, result_var);
More information about the lldb-commits
mailing list