[Lldb-commits] [lldb] [lldb] Add count for number of DWO files loaded in statistics (PR #144424)

via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 16 16:52:10 PDT 2025


================
@@ -512,6 +517,32 @@ def test_breakpoints(self):
             self.verify_keys(
                 breakpoint, 'target_stats["breakpoints"]', bp_keys_exist, None
             )
+    
+    def test_loaded_dwo_file_count(self):
+        """
+        Test "statistics dump" and the loaded dwo file count.
+        Builds a binary w/ separate .dwo files and debug_names, and then
+        verifies the loaded dwo file count is the expected count after running
+        various commands
+        """
+        da = {"CXX_SOURCES": "third.cpp baz.cpp", "EXE": self.getBuildArtifact("a.out")}
+        self.build(dictionary=da, debug_info=["dwo", "debug_names"])
----------------
qxy11 wrote:

Yeah, without the debug names, for the purpose of the test, all the DWO files get loaded when the target is created. If we used `b baz` as the second command instead of `type lookup Baz`, it'd still produce the same results.

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


More information about the lldb-commits mailing list