summaryrefslogtreecommitdiff
path: root/solenv/gdb
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-08-25 01:16:08 +0200
committerMichael Stahl <mstahl@redhat.com>2012-08-25 01:17:07 +0200
commitaad3cc3db08c40e62ce2d7f1105455fec9fab4a2 (patch)
tree178a0e22f9c214e86f7fe461c2f5ed43fae40f66 /solenv/gdb
parentb3233579ccb2528912835deedde37c1d48417d6c (diff)
gdb: SwPaMPrinter: print rings as well
Change-Id: I31b7b6b0cd4ac67c059729e68b50c92b865930b0
Diffstat (limited to 'solenv/gdb')
-rw-r--r--solenv/gdb/libreoffice/sw.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py
index 941f56dd3eb9..a9d2e8ca4f18 100644
--- a/solenv/gdb/libreoffice/sw.py
+++ b/solenv/gdb/libreoffice/sw.py
@@ -72,9 +72,15 @@ class SwPaMPrinter(object):
return "%s" % (self.typename)
def children(self):
+ next_ = self.value['pNext']
+ prev = self.value['pPrev']
point = self.value['m_pPoint'].dereference()
mark = self.value['m_pMark'].dereference()
children = [ ( 'point', point), ( 'mark', mark ) ]
+ if next_ != self.value.address:
+ children.append(("next", next_))
+ if prev != self.value.address:
+ children.append(("prev", prev))
return children.__iter__()
class SwRectPrinter(object):