[Libreoffice-commits] core.git: solenv/gdb

Noel Grandin noel.grandin at collabora.co.uk
Fri Jul 7 13:40:07 UTC 2017


 solenv/gdb/libreoffice/sw.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit be2481d193d6f7a2593cf5ce767894cac8e41435
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Fri Jul 7 15:39:31 2017 +0200

    re-add some gdb BigPtrArray pretty printing
    
    After commit c6902761d797253cda8b3f71f102c66108585e24
    "Revert "use std::vector in BigPtrArray""
    
    <mst_> noelgrandin: you reverted both gdb changes but only one sw
    change?
    <noelgrandin> mst_, I thought your gdb change only appliled to the
    std::vector?
    <mst_> noelgrandin: there was another std::something or other change
    there, one was mvInfo and the other mvData
    <noelgrandin> mst_, sigh, will fix that
    
    Change-Id: I3059d29b1a559eb3077f5d713be011e15e887ee0

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()


More information about the Libreoffice-commits mailing list