fix BigInt gdb pretty-printer

since

commit 9536098ff1
Date:   Tue Nov 17 10:15:11 2020 +0200

    simplify BigInt, remove isSet

and

commit 33b8f7c10b
Date:   Wed Jan 6 10:41:22 2021 +0200

    bIsBig member is redundant

Change-Id: I877364d4b5ed11812c34f2b5d51ec60dd6cca9de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144215
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-12-15 10:15:05 +00:00
parent abdad61f12
commit 8980a7e8d4

View file

@ -18,13 +18,10 @@ class BigIntPrinter(object):
self.val = val
def to_string(self):
if self.val['bIsSet']:
if self.val['bIsBig']:
return self._value()
else:
return self.val['nVal']
if self.val['nLen']:
return self._value()
else:
return "unset %s" % self.typename
return self.val['nVal']
def _value(self):
len = self.val['nLen']