[Lldb-commits] [PATCH] D134734: [lldb][test] Disable TestSBValueUnsignedEnumBitField.py for old DWARF versions

Michael Buch via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 27 06:03:13 PDT 2022


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'])])


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134734.463208.patch
Type: text/x-patch
Size: 649 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220927/82dd1fa8/attachment-0001.bin>


More information about the lldb-commits mailing list