This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Structured exception handligh update


Here is an example of windows structured exception handling compiled with 
gcc.  This will only run under mingw at present since I don't know how to 
properly unwind the stack.  The attached tar ball contains a header file 
that defines __try, __except, and __finally.  There is also a required 
exception handler and a test file.  Hopefully this code will help in the 
addition of compiler level support for these functions.

The msvc defined _except_handler3 could not be used because it resets 
%ebp=&vcer._ebp  instead of to the value it contains.  This requires that 
the  compiler place the registration structure on the stack directly after 
pushing %ebp.  Other than this it is compatible.

seh.tgz

---
Just another brain dead computer user.

Kenneth Haley <mailto:khaley@bigfoot.com>
My website if your interested http://www.bigfoot.com/~khaley


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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