diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-06-28 18:08:03 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-06-28 18:11:10 +0200 |
commit | 4f743419a04375160437a910254c45dea396f70d (patch) | |
tree | 725e928eb133a9681bd85907e220fcb784a860b2 | |
parent | 419295f17974378a7ca79db7ea393df82a3f4f05 (diff) |
gdb pretty-printers: fix BigPtrArrayPrinter after recent std::isation
Change-Id: Ie98f080fbb0efb807dcb2fb7893811f68e831a8f
-rw-r--r-- | solenv/gdb/libreoffice/sw.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py index cfb3cec3eeb7..031963f5c789 100644 --- a/solenv/gdb/libreoffice/sw.py +++ b/solenv/gdb/libreoffice/sw.py @@ -194,10 +194,10 @@ class BigPtrArrayPrinter(object): class _iterator(six.Iterator): def __init__(self, array): - self.blocks = array['m_ppInf'] + self.blocks = array['m_vpInf']['_M_impl']['_M_start'] self.count = array['m_nSize'] self.pos = 0 - self.block_count = array['m_nBlock'] + self.block_count = array['m_vpInf']['_M_impl']['_M_finish'] - array['m_vpInf']['_M_impl']['_M_start'] self.block_pos = 0 self.block = None self.indent = "" @@ -246,7 +246,7 @@ class BigPtrArrayPrinter(object): raise StopIteration() name = str(self.pos) - node = self.block['pData'][self.pos - self.block['nStart']] + node = self.block['mvData']['_M_elems'][self.pos - self.block['nStart']] value = self._node_value(node) if self.pos == self.block['nEnd']: self._next_block() |