[Lldb-commits] [lldb] [lldb] Lookup static const members in FindGlobalVariables (PR #111859)

Ilia Kuklin via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 29 08:44:47 PDT 2024


================
@@ -3490,7 +3490,7 @@ VariableSP SymbolFileDWARF::ParseVariableDIE(const SymbolContext &sc,
   ModuleSP module = GetObjectFile()->GetModule();
 
   if (tag != DW_TAG_variable && tag != DW_TAG_constant &&
-      (tag != DW_TAG_formal_parameter || !sc.function))
+      tag != DW_TAG_member && (tag != DW_TAG_formal_parameter || !sc.function))
----------------
kuilpd wrote:

Added an assert, but maybe I should just add that as a condition for detecting a `static const` member to begin with?

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


More information about the lldb-commits mailing list