[Mono-devel-list] AMD64, PInvoke + Native Exceptions

Zoltan Varga vargaz at gmail.com
Mon Oct 25 05:32:41 EDT 2004


                                             Hi,

On Mon, 25 Oct 2004 00:59:37 +0200 (MEST), Willibald Krenn
<willibald.krenn at gmx.at> wrote:
> Hi!
> 
> > > Just to see, if I understand that correctly: In case I can come up with
> > a
> > > custom personality routine, LMF should not be needed on AMD64 because
> > >  -> c runtime will search the DWARF info for a catch handler
> > >  -> it will find the custom personality routine from the stub that
> > > encapsulated the call to the internal runtime code / native code.
> > >  -> the personality routine will do mono style exception handling..
> > >     (As mono uses plain stack-frames and has all the meta information at
> > > hands the exception handling should be doable by the personality
> > routine..)
> > >
> > > BTW: Throwing a C++ exception in native code just aborts mono because
> > the C
> > > runtime can not find any valid catch handler. So how should Mono be ever
> > > able to use the LMF in case of an exception thrown in native code? (I
> > guess,
> > > I'm missing something here: Signals are another story for sure.)
> 
> Any comment on that assumtion? *please* :-)
> 
> 

This could be implemented, I guess. The implementation might be based on
the one in gcj.

                      Zoltan



More information about the Mono-devel-list mailing list