Skip to content

Commit 4fc71f1

Browse files
committed
[lldb][SymbolFile] Report progress when calling FindTypes over object files in debug map
1 parent 99d505d commit 4fc71f1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "lldb/Core/Module.h"
1515
#include "lldb/Core/ModuleList.h"
1616
#include "lldb/Core/PluginManager.h"
17+
#include "lldb/Core/Progress.h"
1718
#include "lldb/Core/Section.h"
1819
#include "lldb/Host/FileSystem.h"
1920
#include "lldb/Utility/RangeMap.h"
@@ -1240,7 +1241,13 @@ TypeSP SymbolFileDWARFDebugMap::FindCompleteObjCDefinitionTypeForDIE(
12401241
void SymbolFileDWARFDebugMap::FindTypes(const TypeQuery &query,
12411242
TypeResults &results) {
12421243
std::lock_guard<std::recursive_mutex> guard(GetModuleMutex());
1244+
Progress progress(
1245+
llvm::formatv("Searching for type '{0}'",
1246+
query.GetTypeBasename().AsCString("<<UNKNOWN>>")));
12431247
ForEachSymbolFile([&](SymbolFileDWARF *oso_dwarf) {
1248+
if (auto *obj = oso_dwarf->GetObjectFile())
1249+
progress.Increment(1, obj->GetFileSpec().GetPath());
1250+
12441251
oso_dwarf->FindTypes(query, results);
12451252
return results.Done(query) ? IterationAction::Stop
12461253
: IterationAction::Continue;

0 commit comments

Comments
 (0)