Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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 <aph@redhat.com>
To: Richard Henderson <rth@redhat.com>
Cc: "Aaron W. LaFramboise" <aaronavay62@aaronwl.com>,
   Danny Smith <dannysmith@users.sourceforge.net>, gcc@gcc.gnu.org,
   Cygwin <cygwin@cygwin.com>, mingw-dvlpr <mingw-dvlpr@lists.sourceforge.net>
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>

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/

