On Sat, 2007-06-02 at 20:59 +0100, Pedro Alves wrote:
> Pedro Alves wrote:
> > Kevin O'Connor wrote:
> > I recently ported the haret application
> > (http://www.handhelds.org/moin/moin.cgi/HaRET) to mingwce32.  In the
> > process, I used the c++ compiler, mainly because there were a few
> > places in the existing msvc code that would catch bad pointer accesses
> > and handle them gracefully.

> >   try
> >   {
> >     while (wcount--)
> >       *vaddr++ = value;
> >   }
> >   catch (...)
> >   {
> >     Output(C_ERROR "EXCEPTION while writing %08x to address %p",
> >       value, vaddr);
> >   }
> >
> > However, it doesn't work.  (A bad memory access causes the program to
> > terminate.)  What can be done to get this working?
[...]
> Now, on ARM, SEH is table based, like DWARF2 exceptions are too.  This
> means, the compiler must put unwind information in tables that the OS
> will read.  Only the compiler and linker have enough information to
> build those tables.  There is a very rudimentary SEH handler
> implemented in src/newlib/libc/wince/crt0.S, and
> src/newlib/libc/wince/startup.c, that install a catch all top level
> handler.  You could install a top level handler like crt0.S does in
> your app, having but more handlers is something I don't think is
> practical to do manually.

I'm not sure we're talking about the same things here.

Pedro was mentioning src/newlib/* while Kevin asks for mingw32ce. Two
different worlds.

I have been looking into getting a generic exception handler to work for
mingw32ce, but haven't had any success yet. This is a requirement for
having any kind of exception handling - I am not very knowledgable about
the differences between g++ and SEH. But right now, I think neither can
work.

        Danny

-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to