This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: C++ Exception Handling under eCos
- To: Jonathan Larmour <jlarmour at redhat dot com>
- Subject: Re: [ECOS] C++ Exception Handling under eCos
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Date: Fri, 16 Mar 2001 09:47:43 +0100
- Cc: Rosimildo daSilva <rosimildo at hotmail dot com>, ecos-discuss at sources dot redhat dot com
- References: <F1299n1xxWn9R6mJB5200000c1c@hotmail.com> <3AB11DAE.9BEDE548@redhat.com>
> > >Can anybody tell me wether C++ exception handling is supported under eCos,
> > >or not?
> > >In case it is supported, what do I have to do to make it work properly?
> > >
> >
> > No, it is not supported.
> >
> > To make it to work, it requires some work at GCC level. Basically,
> > to make exceptions *thread-safe*, you would need to make some changes
> > to GCC. You have to provide some functions that goes to libgcc2.a.
> > They are basically provided a global mutex that gets created, and something
> > similar to a POSIX key, so each thread get its own context to store the info
> > for each exception.
Could you point me towards some documentation as to what is
required. eCos already has mutex and per thread data storage, so at
least that part is done.
> > Also, a few extras sections to the linker scripts might be necessary.
> > I have not looked too close to the eCos scripts.
>
> Indeed they would in eCos. I've been working somewhat on this, but it's
> still work in progress.
Could you P2P distribute this? We may take it a bit further if we
think it would be usefull to us.
Andrew