Kaydet (Commit) 8790f80d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Only print the rtl::Reference's pointer

...but do not pretty-print its dereferenced value.  This is in line with the
handling of css::uno::Reference, and avoids gdb Python exceptions when trying to
print uninitialized rtl::Reference instances (which can e.g. happen during a
"backtrace full").

Change-Id: I9a3c0a6441cf23cba748183226832d2ba23bd531
üst db23f89b
...@@ -68,8 +68,7 @@ class RtlReferencePrinter(object): ...@@ -68,8 +68,7 @@ class RtlReferencePrinter(object):
def to_string(self): def to_string(self):
pointee = self.val['m_pBody'] pointee = self.val['m_pBody']
if pointee: if pointee:
val = pointee.dereference() return '%s to %s' % (self.typename, str(pointee))
return '%s to %s' % (self.typename, str(val))
else: else:
return "empty %s" % self.typename return "empty %s" % self.typename
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment