https://bugs.freedesktop.org/show_bug.cgi?id=53154

--- Comment #8 from Lionel Elie Mamane <lio...@mamane.lu> 2012-08-06 16:56:33 
UTC ---
Now I need to find a way to break at entry of this function only if I'm in the
problematic case so that I can step through the execution.

Tried to to that by this patch:


--- a/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx
+++ b/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx
@@ -26,6 +26,8 @@
  *
  ************************************************************************/

+#include
"/home/user/src/libreoffice/workdirs/libreoffice-3.6/reportdesign/source/core/inc/Section.hxx"
+#include <iostream>

 #include "bridges/cpp_uno/shared/unointerfaceproxy.hxx"

@@ -48,6 +50,12 @@ void freeUnoInterfaceProxy(uno_ExtEnvironment * pEnv, void *
pProxy)
         OSL_ASSERT(false);
     }

+    reportdesign::OSection *pSec =
dynamic_cast<reportdesign::OSection*>(pThis->pCppI);
+    if (pSec == NULL)
+        std::cerr << "pSec is NULL" << std::endl;
+    else
+        std::cerr << "pSec is " << pSec << std::endl;
+
     (*pThis->pBridge->getCppEnv()->revokeInterface)(
         pThis->pBridge->getCppEnv(), pThis->pCppI );
     pThis->pCppI->release();


Thinking I would (in gdb) put a break on the line

    std::cerr << "pSec is " << pSec << std::endl;

But then it doesn't link:


../../../unxlngx6/slo/unointerfaceproxy.o: In function
`bridges::cpp_uno::shared::freeUnoInterfaceProxy(_uno_ExtEnvironment*, void*)':
/home/user/src/libreoffice/workdirs/libreoffice-3.6/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx:53:
undefined reference to `typeinfo for reportdesign::OSection'
collect2: error: ld returned 1 exit status



Anybody got a dirty idea to get this to go through, or another idea to break
only in the problematic case?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to