From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7853 invoked by alias); 24 Nov 2004 17:41:28 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 7420 invoked from network); 24 Nov 2004 17:41:21 -0000 Received: from unknown (HELO mta10-winn.mailhost.ntl.com) (212.250.162.8) by sourceware.org with SMTP; 24 Nov 2004 17:41:21 -0000 Received: from aamta02-winn.mailhost.ntl.com ([212.250.162.8]) by mta10-winn.mailhost.ntl.com with ESMTP id <20041124174120.TXIE22418.mta10-winn.mailhost.ntl.com@aamta02-winn.mailhost.ntl.com> for ; Wed, 24 Nov 2004 17:41:20 +0000 Received: from cuddles.cambridge.redhat.com ([82.16.12.40]) by aamta02-winn.mailhost.ntl.com with ESMTP id <20041124174120.TZGG20377.aamta02-winn.mailhost.ntl.com@cuddles.cambridge.redhat.com> for ; Wed, 24 Nov 2004 17:41:20 +0000 Received: from redhat.com (localhost.localdomain [127.0.0.1]) by cuddles.cambridge.redhat.com (8.12.8/8.12.8) with ESMTP id iAOHdknq009247; Wed, 24 Nov 2004 17:39:56 GMT Received: (from aph@localhost) by redhat.com (8.12.8/8.12.8/Submit) id iAOHdhGU009243; Wed, 24 Nov 2004 17:39:43 GMT 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 18:19:00 -0000 From: Andrew Haley To: Richard Henderson Cc: "Aaron W. LaFramboise" , Danny Smith , gcc@gcc.gnu.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@DANNY> <20041124003240.GA6028@redhat.com> <000c01c4d1fa$3f297fd0$e56d65da@DANNY> <20041124080708.GA3578@redhat.com> <41A44B97.1060007@aaronwl.com> <20041124173139.GA5380@redhat.com> X-SW-Source: 2004-11/txt/msg00910.txt.bz2 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.