================ @@ -295,9 +295,11 @@ bool BreakpointBase::BreakpointHitCallback( frame.GetValueForVariablePath(expr, lldb::eDynamicDontRunTarget); if (value.GetError().Fail()) value = frame.EvaluateExpression(expr); - const char *expr_val = value.GetValue(); - if (expr_val) - output += expr_val; + llvm::StringRef summary_str = value.GetSummary(); + if (!summary_str.empty()) + output += summary_str.str(); + else + output += value.GetValue(); ---------------- clayborg wrote:
I think we should do what we do for variables: show the value + summary. If you have pointer, but it has a summary, we should still show the poiinter and tthe summary https://github.com/llvm/llvm-project/pull/71723 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits