Re: [udk-dev] Re: My first Calc addin: problem with exception handling
On Mon, Aug 25, 2008 at 02:49:56PM +0100, Andrea wrote: > I've tried to force a SIGSEGV, but even then, gdb stops but there is no call > stack available. > > No idea... > Try another (newer) gdb version, if not done already. gdb had a tendency to break on c++... Cheers, -- Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Re: My first Calc addin: problem with exception handling
On 08/25/08 10:05, Andrea wrote: > Can I ask an other question: I cannot set breakpoints in my library. (gdb) attach 3459 Attaching to program: /home/andrea/projects/openoffice/maths/libASIMaths.so, process 3459 0x00110416 in __do_global_dtors_aux () (gdb) break ASIMaths_impl.cpp:73 Breakpoint 1 at 0x110ee8: file ASIMaths_impl.cpp, line 73. (gdb) c Continuing. But then it never stops. I compile and link with "-g". Should I do anything more? Sorry, no idea. Maybe gdb thinks that line 73 of your file contains no code (like only the "void f()" start of a function definition). -Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Re: My first Calc addin: problem with exception handling
Andrea wrote: Andrea wrote: I have read that one should use the same compiler used to compile OO. Is it (still) true? maybe. I don't know. it is recommended to avoid problems Is this my problem? No. I managed to find what was the problem: I followed this example http://wiki.services.openoffice.org/wiki/SimpleCalcAddIn but I think it is not using the correct options for the linker. I have found a different set of options in the example directory of the sdk. Now I can raise exceptions. In particular this one seems to be important -Wl,--version-script,../component.uno.map What is the definitive guide to "options to compile a Calc add-in"? that is a good question. The options used in the SDK should be ok but i have to confess that it is not well documented and not really well arranged. It's of course not easy to maintain the set of necessary options because i want to limit them on the necessary minimum in the SDK env. Anyway i have it on a longer todo list to clean up this in the SDK. Maybe i should create a new wiki page where i document the options and maintain it. The problem with the wiki is that docu can be easy created but can be also become out dated fast and it's often not maintained. Juergen Andrea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]