[Lldb-commits] [lldb] [WIP] [lldb][Progress] Report progress when completing types from DWARF (PR #91452)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Wed May 8 09:14:42 PDT 2024
================
@@ -1240,7 +1241,13 @@ TypeSP SymbolFileDWARFDebugMap::FindCompleteObjCDefinitionTypeForDIE(
void SymbolFileDWARFDebugMap::FindTypes(const TypeQuery &query,
TypeResults &results) {
std::lock_guard<std::recursive_mutex> guard(GetModuleMutex());
+ Progress progress(
+ llvm::formatv("Searching for type '{0}'",
+ query.GetTypeBasename().AsCString("<<UNKNOWN>>")));
ForEachSymbolFile([&](SymbolFileDWARF *oso_dwarf) {
+ if (auto *obj = oso_dwarf->GetObjectFile())
+ progress.Increment(1, obj->GetFileSpec().GetPath());
----------------
adrian-prantl wrote:
What does this get rendered to?
It would be nice if it were:
Searching type "Foo" in "main.o"
but it almost looks like this would become
Searching for type "main.o"
?
https://github.com/llvm/llvm-project/pull/91452
More information about the lldb-commits
mailing list