[Lldb-commits] [lldb] [lldb] Remerge #136236 (PR #136795)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 23 11:06:10 PDT 2025
================
@@ -209,6 +209,26 @@ def test_default_no_run(self):
)
self.assertGreater(module_stats["symbolsLoaded"], 0)
+ def test_default_no_run_no_preload_symbols(self):
+ """Test "statistics dump" without running the target and without
+ preloading symbols.
+
+ Checks that symbol count are zero.
+ """
+ # Make sure symbols will not be preloaded.
+ self.runCmd("settings set target.preload-symbols false")
+
+ # Build and load the target
+ self.build()
+ self.createTestTarget()
+
+ # Get statistics
+ debug_stats = self.get_stats()
+
+ # No symbols should be loaded in the main module.
+ main_module_stats = debug_stats["modules"][0]
+ self.assertEqual(main_module_stats["symbolsLoaded"], 0)
----------------
clayborg wrote:
rename to "symbolTableSymbolCount" per request in previous PR to keep naming consistent.
https://github.com/llvm/llvm-project/pull/136795
More information about the lldb-commits
mailing list