On Thu, 2009-05-14 at 20:44 +0200, Johnny Willemsen wrote: > Hi, > > I just found that structured exception handling (__try, __except, __finally) > is not supported with cegcc. Are there plans/ideas to add this? > > Johnny > > See for example > http://msdn.microsoft.com/en-us/library/ms924251.aspx > http://code-factor.blogspot.com/2007/04/windows-ce-seh-for-arm-with-gcc.html
I've played with exception handling for cegcc on ARM. The second link is interesting, I had never read this article but it describes what I did. On the ARM compilers, you can say int func(int n) __attribute__((__exception_handler__(crash))); to declare that crash is the exception handler for func. It does this by putting the address of crash in the pdata structure for func. I also have code for a __dft_exception_handler__ attribute that might work similar to the SetUnhandledExceptionFilter from your other mail. This needs to be ported to x86 though (it does a bit of assembler which is obviously different). This code didn't interfere with anything for ARM, whether that's true for x86 is unknown to me. Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel