This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


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

Re: [RFC] sigsetjmp/siglongjmp on cygwin


Keith Seitz <keiths@cygnus.com> writes:

> Hi,
> 
> I would like to discuss what to do about siglongjmp/sigsetjmp. These
> functions were recently added to configure.in:
> 
> 2001-07-12  Mark Kettenis  <kettenis@gnu.org>
> 
>         * configure.in: Add check for sigsetjmp.
> 
> To make a long story short, I spent a lot of time trying to track this
> down. The crux of it is that sigsetjmp/siglongjmp _do_ exist on cygwin,
> but they are not reliable. I don't know why, but they are not.

Damn!  Any chance of fixing cygwin?

> Until the above change, cygwin used setjmp/longjmp, and this patch will
> force gdb to use them again.
> 
> I'm open to better ways of dealing with this.

Can't say I like your patch.  An alternative would be to #undef
HAVE_SIGSETJMP in the cygwin xm.h file.  That isolates this bogosity
nicely in a platform-specific file.  Perhaps some other folks have an
opinion on this.  If you don't hear anything, feel free to choose a
hack.

Mark


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