Michael137 created this revision. Michael137 added reviewers: aprantl, fdeazeve. Herald added a project: All. Michael137 requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits.
With older DWARF versions we don't encode the enum's underlying type in DWARF. In those cases LLDB sign-extends the bitfield as a signed integer. Without the actual enum type being present in DWARF there's not much we can do. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D134734 Files: lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py Index: lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py =================================================================== --- lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py +++ lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py @@ -14,5 +14,7 @@ """ import lldbsuite.test.lldbinline as lldbinline +from lldbsuite.test.decorators import * -lldbinline.MakeInlineTest(__file__, globals()) +lldbinline.MakeInlineTest(__file__, globals(), + [skipIf(dwarf_version=['<', '4'])])
Index: lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py =================================================================== --- lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py +++ lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py @@ -14,5 +14,7 @@ """ import lldbsuite.test.lldbinline as lldbinline +from lldbsuite.test.decorators import * -lldbinline.MakeInlineTest(__file__, globals()) +lldbinline.MakeInlineTest(__file__, globals(), + [skipIf(dwarf_version=['<', '4'])])
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits