diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-12-20 12:30:23 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-12-20 12:34:32 +0100 |
commit | b23c022db83fa74774063456fc626ffad1f3c115 (patch) | |
tree | a6cf27d4eff5fa3bfccd73ece48f9f035ae387c3 /solenv/gdb/libreoffice | |
parent | 04e3b4789682ecc1ead40b35dcc13b5079f51460 (diff) |
gdb pretty printers: fix the SwXTextCursor::Impl one even more
Turns out that commit 30f3315d52df22716c086836c41465a6c4cb98b5 has
removed the SwClient there a long time ago, and the SwUnoCrsr was also
renamed...
Change-Id: I92932130c5adbea530c39557932efce70c9f75e7
Diffstat (limited to 'solenv/gdb/libreoffice')
-rw-r--r-- | solenv/gdb/libreoffice/sw.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py index ff929bb3d3ac..cfb3cec3eeb7 100644 --- a/solenv/gdb/libreoffice/sw.py +++ b/solenv/gdb/libreoffice/sw.py @@ -70,8 +70,10 @@ class SwPaMPrinter(object): children.append(("prev", prev)) return children.__iter__() -class SwUnoCrsrPrinter(SwPaMPrinter): - '''Prints SwUnoCrsr.''' +# apparently the purpose of this is to suppress printing all the extra members +# that SwCursor and SwUnoCursor add +class SwUnoCursorPrinter(SwPaMPrinter): + '''Prints SwUnoCursor.''' class SwRectPrinter(object): '''Prints SwRect.''' @@ -130,8 +132,9 @@ class SwXTextCursorImplPrinter(object): return "%s" % (self.typename) def children(self): - registeredIn = self.value['m_pRegisteredIn'].dereference() - children = [('registeredIn', registeredIn)] + cursor = self.value['m_pUnoCursor']["m_pCursor"]["_M_ptr"] + registeredIn = cursor.dereference() + children = [('m_pUnoCursor', registeredIn)] return children.__iter__() class SwUnoImplPtrPrinter(object): @@ -289,7 +292,7 @@ def build_pretty_printers(): printer.add('SwNodeIndex', SwNodeIndexPrinter) printer.add('SwIndex', SwIndexPrinter) printer.add('SwPaM', SwPaMPrinter) - printer.add('SwUnoCrsr', SwUnoCrsrPrinter) + printer.add('SwUnoCursor', SwUnoCursorPrinter) printer.add('SwRect', SwRectPrinter) printer.add('sw::mark::Bookmark', MarkBasePrinter) printer.add('sw::mark::MarkBase', MarkBasePrinter) |