[Lldb-commits] [lldb] [lldb][test] Add FindGlobalVariables tests for C++ constexpr static data members (PR #70641)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 30 03:02:35 PDT 2023
================
@@ -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
More information about the lldb-commits
mailing list