summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--solenv/gdb/libreoffice/cppu.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/solenv/gdb/libreoffice/cppu.py b/solenv/gdb/libreoffice/cppu.py
index 8db684a74eca..31f1da60f568 100644
--- a/solenv/gdb/libreoffice/cppu.py
+++ b/solenv/gdb/libreoffice/cppu.py
@@ -63,7 +63,9 @@ class UnoReferencePrinter(object):
def to_string(self):
iface = self.value['_pInterface']
if iface:
- impl = iface.cast(self._itype()).dereference()
+ # dynamic_cast hopefully avoids this problem:
+ # base class 'com::sun::star::uno::XInterface' is ambiguous
+ impl = iface.dynamic_cast(self._itype()).dereference()
return '%s to %s' % (self.typename, str(impl))
else:
return "empty %s" % self.typename