Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16804.51039.496437.749017@cuddles.cambridge.redhat.com> Date: Wed, 24 Nov 2004 17:39:43 +0000 From: Andrew Haley To: Richard Henderson Cc: "Aaron W. LaFramboise" , Danny Smith , gcc AT gcc DOT gnu DOT org, Cygwin , mingw-dvlpr Subject: Re: stdcall lib functions with exception throwing callbacks vs Dwarf2 EH In-Reply-To: <20041124173139.GA5380@redhat.com> References: <001701c4d1ab$949322e0$0a6d65da AT DANNY> <20041124003240 DOT GA6028 AT redhat DOT com> <000c01c4d1fa$3f297fd0$e56d65da AT DANNY> <20041124080708 DOT GA3578 AT redhat DOT com> <41A44B97 DOT 1060007 AT aaronwl DOT com> <20041124173139 DOT GA5380 AT redhat DOT com> Richard Henderson writes: > On Wed, Nov 24, 2004 at 02:51:35AM -0600, Aaron W. LaFramboise wrote: > > Is there a way to have the DW2 unwinder call some particular function, > > for eg, if the previous frame was not compiled with -fexceptions, rather > > than just crashing? Is this what MD_FALLBACK_FRAME_STATE_FOR is for? > > Yes, sortof. I don't know if you can make it do what you want, exactly. > > > Other Windows compilers are able to handle this condition. > > If you want to be able to handle this, I recommend that you NOT use dwarf2. DWARF2 unwinder data is required by Java for things other than just throwing exceptions. If it's possible to create a MD_FALLBACK_FRAME_STATE_FOR that can unwind through SEH frames -- and I believe it is -- we should do so. Andrew. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/