[Lldb-commits] [lldb] [lldb] Add a progress event for executing an expression (PR #119757)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 12 15:12:25 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)"
----------------
medismailben wrote:

Also, for `UtilityFunction` specifically, it might be nice to show the name of the function being called as a progress detail. 

https://github.com/llvm/llvm-project/pull/119757


More information about the lldb-commits mailing list