[Lldb-commits] [lldb] [lldb] Show module name in progress update for downloading symbols (PR #85342)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 15 12:09:36 PDT 2024
================
@@ -1066,11 +1066,21 @@ bool SymbolLocatorDebugSymbols::DownloadObjectAndSymbolFile(
command << lookup_arg;
// Log and report progress.
+ std::string lookup_desc;
+ if (uuid_ptr && file_spec_ptr)
+ lookup_desc =
+ llvm::formatv("{0} ({1})", file_spec_ptr->GetFilename().GetString(),
+ uuid_ptr->GetAsString());
+ else if (uuid_ptr)
+ lookup_desc = uuid_ptr->GetAsString();
+ else if (file_spec_ptr)
+ lookup_desc = file_spec_ptr->GetFilename().GetString();
+
Log *log = GetLog(LLDBLog::Host);
LLDB_LOG(log, "Calling {0} with {1} to find dSYM: {2}", dsymForUUID_exe_path,
- lookup_arg, command.GetString());
+ lookup_desc, command.GetString());
- Progress progress("Downloading symbol file", lookup_arg);
+ Progress progress("Downloading symbol file", lookup_desc);
----------------
clayborg wrote:
I like Adrian's proposal. We could also do `"Downloading symbols for"` or `"Downloading debug info for"` as options.
https://github.com/llvm/llvm-project/pull/85342
More information about the lldb-commits
mailing list