From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Eli Zaretskii Cc: Keith Seitz , Mark Kettenis , gdb-patches@sources.redhat.com Subject: Re: [RFC] sigsetjmp/siglongjmp on cygwin Date: Thu, 02 Aug 2001 10:25:00 -0000 Message-id: <3B698CED.8030007@cygnus.com> References: X-SW-Source: 2001-08/msg00038.html > On Wed, 1 Aug 2001, Keith Seitz wrote: > > >> > [...] An alternative would be to #undef >> > HAVE_SIGSETJMP in the cygwin xm.h file. That isolates this bogosity >> > nicely in a platform-specific file. > >> >> Hmmm.. This might be a better approach. I hate touching configure.in: it >> makes everyone recompile all of gdb. > > > Or maybe #define sigsetjmp setjmp etc., again in a Cygwin-specific > header. You can even make that define be version specific, assuming > that some future version of Cygwin solves the problem. Again, I'm not too warm on this. Remember, the idea is for autoconf to perform a feature based test: is feature XYZ supported? In the case of the above, the feature question is: does the system have a useable sigsetjmp()? Unfortunatly, the test currently asks: does the system have anything looking like sigsetjmp(), working or not? :-) I think Keith's original patch is the correct fix. It refines the test so that, for cygwin, it reports back ``no sigsetjmp()'' is not there (or is broken). Andrew