From be2481d193d6f7a2593cf5ce767894cac8e41435 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 7 Jul 2017 15:39:31 +0200 Subject: re-add some gdb BigPtrArray pretty printing After commit c6902761d797253cda8b3f71f102c66108585e24 "Revert "use std::vector in BigPtrArray"" noelgrandin: you reverted both gdb changes but only one sw change? mst_, I thought your gdb change only appliled to the std::vector? noelgrandin: there was another std::something or other change there, one was mvInfo and the other mvData mst_, sigh, will fix that Change-Id: I3059d29b1a559eb3077f5d713be011e15e887ee0 --- solenv/gdb/libreoffice/sw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solenv') diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py index cfb3cec3eeb7..6c0165e3fc6b 100644 --- a/solenv/gdb/libreoffice/sw.py +++ b/solenv/gdb/libreoffice/sw.py @@ -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() -- cgit