================ @@ -113,6 +113,37 @@ def test_class_with_only_const_static(self): self.expect_expr("ClassWithOnlyConstStatic::member", result_value="3") + def check_global_var(self, name: str, expect_type, expect_val): + var_list = self.target().FindGlobalVariables(name, lldb.UINT32_MAX) + self.assertEqual(len(var_list), 1) + varobj = var_list[0] + self.assertEqual(varobj.type.name, expect_type) + self.assertEqual(varobj.value, expect_val) + + # For debug-info produced by older versions of clang, inline static data members + # wouldn't get indexed into the Names accelerator table preventing LLDB from finding + # them. + @expectedFailureAll(compiler=["clang"], compiler_version=["<", "18.0"]) + @expectedFailureAll(debug_info=no_match(["dsym"])) ---------------- Michael137 wrote:
This is a separate issue to do with how variable DIEs are parsed when debug maps are present. Will fix in a follow-up https://github.com/llvm/llvm-project/pull/70641 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits