diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-15 10:15:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-15 15:16:57 +0000 |
commit | 8980a7e8d48eeed0d1550c9efecd7f7300d9f0d7 (patch) | |
tree | 64d3d06b465483968faa76e32a18445db04e9af8 /solenv/gdb | |
parent | abdad61f123820ed72893a9c2a0d5305ea8386d5 (diff) |
fix BigInt gdb pretty-printer
since
commit 9536098ff107f1096e7f710c6f1e76c5659a5482
Date: Tue Nov 17 10:15:11 2020 +0200
simplify BigInt, remove isSet
and
commit 33b8f7c10baead5fdd24d9b68caab54052bd00ba
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>
Diffstat (limited to 'solenv/gdb')
-rw-r--r-- | solenv/gdb/libreoffice/tl.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/solenv/gdb/libreoffice/tl.py b/solenv/gdb/libreoffice/tl.py index 5eb2c45ca54f..6e7a7c25e320 100644 --- a/solenv/gdb/libreoffice/tl.py +++ b/solenv/gdb/libreoffice/tl.py @@ -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'] |