summaryrefslogtreecommitdiff
path: root/solenv/gdb
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-01-10 00:15:05 +0100
committerMichael Stahl <mstahl@redhat.com>2013-01-10 00:58:45 +0100
commitb05250de08f5dad8c6ac1d86d0c63981d800744f (patch)
tree5e46ac77d5052cab865e754cd6334f076fef987e /solenv/gdb
parent6880e2d31a38d5f4b44ba4f5b4a2b3e361a66312 (diff)
gdb: print something also for non-recognized node types
These do not occur as such but while a node is being destroyed it is still in the nodes array and may have some base class types; without giving these a value gdb will just stop printing the nodes array then. Change-Id: If78c4f633312cf8bad0048b704fe20bd09c7c28f
Diffstat (limited to 'solenv/gdb')
-rw-r--r--solenv/gdb/libreoffice/sw.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py
index a9d2e8ca4f18..532f1c59e5df 100644
--- a/solenv/gdb/libreoffice/sw.py
+++ b/solenv/gdb/libreoffice/sw.py
@@ -163,6 +163,8 @@ class BigPtrArrayPrinter(object):
cur_indent = self.indent
elif str(node.dynamic_type.target()) == "SwDummySectionNode":
value = "DummySctNode "
+ else: # must be currently being deleted, so has some abstract type
+ value = "~DeletedNode "
# return "\n[%s%4d%s] %s %s" % (cur_indent, self.pos, \
# self.max_indent[len(cur_indent):], node, value)
return "\n[%4d] %s%s%s %s" % (self.pos, cur_indent, \