Dumper: Fix dumping of enum values for cdb

Fixes the Bitfields test.

Change-Id: I2aab020f1dc8be40ab994586d0989452c80bb8e3
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2020-07-31 14:09:29 +02:00
parent 530e8568b1
commit 57c6a32b10

View File

@@ -2903,11 +2903,11 @@ class DumperBase():
return dd(intval, self.laddress, form)
def display(self):
if self.ldisplay is not None:
return self.ldisplay
simple = self.value()
if simple is not None:
return str(simple)
if self.ldisplay is not None:
return self.ldisplay
#if self.ldata is not None:
# if sys.version_info[0] == 2 and isinstance(self.ldata, buffer):
# return bytes(self.ldata).encode('hex')