cd desktop build debug=true deliver copy these module's lib to install dir
------------------ zhangyongzhi [EMAIL PROTECTED] 2008-03-29 ------------------------------------------------------------- 发件人:AshishRaj 发送日期:2008-03-25 21:09:30 [EMAIL PROTECTED] 抄送: 主题:[tools-dev] How to compile OOo applications and VCL module fordebugging Hi, I am trying to compile VCL module with symbols with intention of debugging soffice binary with gdb and trace the code flow, specifically in VCL layer; so as to understand initialization, plugin detection and the way write, calc and impress interact with VCL. I have tried steps outlined at http://wiki.services.openoffice.org/wiki/Debugging specifically, under vcl dir > build debug=true > deliver i tried to use Linkoo, to relink soffice binary, but it did not work out as expected (soffice binary time stamp didn't change). so i cleaned all unxlngi6.pro dir's and ran configure with additional option --enable-symbols, followed by dmake on root dir. however build was successful, i could see symbols in gdb, but soffice now crashes as soon as it is launched. gdb gives following [...] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1214576944 (LWP 7229)] 0x00f79088 in cppu::_copyConstructAnyFromData (pDestAny=0xb6b9cc54, pSource=0xbfbc7898, pType=0xb6bca330, pTypeDescr=0x0, acquire=0x49d1a8 <com::sun::star::uno::cpp_acquire(void*)>, mapping=0x0) at /home/openoffice/OpenOffice-2.3.1/OOG680_m9/cppu/source/uno/copy.hxx:282 282 pDestAny->pData = ::rtl_allocateMemory( pTypeDescr->nSize ); [...] I believe I am missing a some steps here. Overall, I have following doubts:- 1. How to build specific modules with debug symbols and regenerate the soffice binary and any dependent modules. I understand linkoo has a role to play, but then how it is supposed to be used? 2. How to enable debug logs and printf's, particularly in VCL layer and applications such as writer, impress. Thanks Ashish -- View this message in context: http://www.nabble.com/How-to-compile-OOo-applications-and-VCL-module-for-debugging-tp16274678p16274678.html Sent from the openoffice - tools dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
