This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ Exception Handling under eCos


> > >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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]