================ @@ -883,8 +906,17 @@ static bool DumpValue(Stream &s, const SymbolContext *sc, } if (!is_array_range) { - LLDB_LOGF(log, - "[Debugger::FormatPrompt] dumping ordinary printable output"); + if (!entry.printf_format.empty()) { + if (DumpValueWithPrintf(s, entry.printf_format, *target)) { + LLDB_LOGF(log, "dumping using printf format"); + return true; + } else { + LLDB_LOG(log, + "unsupported printf format '{0}' - for type info flags {1}", + entry.printf_format, target->GetTypeInfo()); + } + } + LLDB_LOGF(log, "dumping ordinary printable output"); ---------------- jimingham wrote:
Should this silently eat errors if the format string is bad? https://github.com/llvm/llvm-project/pull/81196 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits