diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-06-12 16:08:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-06-13 09:49:33 +0200 |
commit | 8790f80d68cca7a894164ad84363b42332a1b6ec (patch) | |
tree | a5c7e07ce34bf393fe3f5aa4b71db84862c9a171 /solenv | |
parent | db23f89b76cb61b215bcae5495eadba2b5ceace2 (diff) |
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
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gdb/libreoffice/sal.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/solenv/gdb/libreoffice/sal.py b/solenv/gdb/libreoffice/sal.py index c7f4d7c6de4b..8b4f0cbb9078 100644 --- a/solenv/gdb/libreoffice/sal.py +++ b/solenv/gdb/libreoffice/sal.py @@ -68,8 +68,7 @@ class RtlReferencePrinter(object): def to_string(self): pointee = self.val['m_pBody'] if pointee: - val = pointee.dereference() - return '%s to %s' % (self.typename, str(val)) + return '%s to %s' % (self.typename, str(pointee)) else: return "empty %s" % self.typename |