[Lldb-commits] [lldb] [lldb] Show module name in progress update for downloading symbols (PR #85342)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 15 12:05:35 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);
----------------
adrian-prantl wrote:
Right, this makes it sounds as if we are downloading `libfoo.dylib`. But we're downloading the symbol file for `libfoo.dylib`, which is, e.g., `libfoo.dylib.dSYM`. Hence the "for"
https://github.com/llvm/llvm-project/pull/85342
More information about the lldb-commits
mailing list