[Lldb-commits] [lldb] Fix debug info size statistics for split dwarf (PR #80218)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 31 16:11:05 PST 2024


================
@@ -0,0 +1,132 @@
+"""
+Test SBTarget.GetStatistics() reporting for dwo files.
+"""
+
+import json
+import os
+
+from lldbsuite.test import lldbtest, lldbutil
+from lldbsuite.test.decorators import *
+from lldbsuite.test_event.build_exception import BuildError
+
+
+SKELETON_DEBUGINFO_SIZE = 602
+MAIN_DWO_DEBUGINFO_SIZE = 385
+FOO_DWO_DEBUGINFO_SIZE = 380
+
+
+class TestDebugInfoSize(lldbtest.TestBase):
----------------
clayborg wrote:

Add this just inside the class:
```
class TestDebugInfoSize(lldbtest.TestBase):
    # Concurrency is the primary test factor here, not debug info variants.
    NO_DEBUG_INFO_TESTCASE = True
```
This creates its own binaries and doesn't need to be run for all of the DWARF variants

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


More information about the lldb-commits mailing list