[Lldb-commits] [lldb] Fix the incorrect reporting of dwarf5 .debug_names index time during partial indexing (PR #134133)

David Peixotto via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 2 12:54:46 PDT 2025


================
@@ -65,6 +65,10 @@ class DebugNamesDWARFIndex : public DWARFIndex {
   void GetFunctions(const RegularExpression &regex,
                     llvm::function_ref<bool(DWARFDIE die)> callback) override;
 
+  StatsDuration::Duration GetIndexTime() override {
+    return m_fallback.GetIndexTime();
----------------
dmpots wrote:

Can we get a test to exercise this case? From the description it sounds like it covers the case of partial debug_names. Is it possible to craft an example where all the time is spent in the fallback case? So that checking for a non-zero index time would be enough to show that it is working.

https://github.com/llvm/llvm-project/pull/134133


More information about the lldb-commits mailing list