diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-04-10 14:38:58 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-10 14:41:04 +0200 |
commit | 3a994cd0b649df5233d8a23b4672f6a88d7599f5 (patch) | |
tree | aa0352b2bb70102f486343682bf23bc0ece1ffca | |
parent | fa6c211a454fa51feb36f7e4dae966c31bef432e (diff) |
gdb: make uno::Reference output shorter
The original idea to dereference the implementation and show all details
sounded nice, but now printing any UNO object that is a bit more complex
results in a multi-page output, which makes getting backtraces really
hard. Better to just show the dynamic type and the pointer.
Change-Id: I340a31b27b059c3d03d9e537de519e286af2e50f
-rw-r--r-- | solenv/gdb/libreoffice/cppu.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/solenv/gdb/libreoffice/cppu.py b/solenv/gdb/libreoffice/cppu.py index 83c4bffb3a4c..c60e125f262c 100644 --- a/solenv/gdb/libreoffice/cppu.py +++ b/solenv/gdb/libreoffice/cppu.py @@ -64,8 +64,7 @@ class UnoReferencePrinter(object): iface = self.value['_pInterface'] if iface: try: - impl = iface.cast(iface.dynamic_type).dereference() - return '%s to %s' % (self.typename, str(impl)) + return '%s to (%s) %s' % (self.typename, str(iface.dynamic_type), str(iface)) except: # fallback for potential problem: # base class 'com::sun::star::uno::XInterface' is ambiguous |