From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Cc: Andrew Cagney <ac131313@cygnus.com>
Subject: Re: [RFC] sigsetjmp/siglongjmp on cygwin -- problem tracked down
Date: Mon, 13 Aug 2001 20:10:00 -0000 [thread overview]
Message-ID: <20010813201116.A12426@nevyn.them.org> (raw)
In-Reply-To: <20010813225508.A22351@redhat.com>
On Mon, Aug 13, 2001 at 10:55:08PM -0400, Christopher Faylor wrote:
> On Mon, Aug 13, 2001 at 10:39:52PM -0400, Andrew Cagney wrote:
> >> So, with the above buggy code, we'll eventually derefernce *catch_return[36]
> >> when we should be dereferencing (*catch_return)[36].
> >>
> >> I'll fix cygwin. How do we want to fix gdb?
> >>
> >> I could add a define in setjmp.h like this:
> >>
> >> #define WORKING_SETJMP 1
> >
> >
> >The BSD way of doing it was:
> >
> > #include <sys/param.h>
> > #if BSD >= 199506
> > ... was this from the last bsd release ever ...
> > #endf
> >
> >While it leads to pretty obscure tests (like the above) it did make it
> >possible to test for anything constrained to a specific release.
>
> Doh. Now that you mention it, Cygwin actually already has a mechanism
> for this. We bump a minor version number when there are api changes,
> such as this. Then we usually define a macro like
> "CYGWIN_VERSION_SIGSEJMP_IS_OK" based on the API. It is a little
> tricky, though, since the actual header file is in newlib not cygwin.
On the other hand, it should be very straightforward to write an
autoconf test for this. You said that the code in question looked like
env[36] instead of (env)[36]; just use an argument that would not be
valid to subscript. env + 1[36], for instance, should generally not
compile.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2001-08-13 20:10 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-01 14:01 [RFC] sigsetjmp/siglongjmp on cygwin Keith Seitz
[not found] ` <s3iae1jjso2.fsf@soliton.wins.uva.nl>
2001-08-01 16:03 ` Keith Seitz
2001-08-01 23:57 ` Eli Zaretskii
2001-08-02 10:25 ` Andrew Cagney
2001-08-02 13:15 ` Mark Kettenis
2001-08-13 14:46 ` Jim Blandy
2001-08-13 15:12 ` Keith Seitz
2001-08-13 15:37 ` Andrew Cagney
2001-08-13 15:43 ` Keith Seitz
2001-08-13 15:52 ` Andrew Cagney
2001-08-13 16:27 ` Keith Seitz
2001-08-13 16:32 ` Christopher Faylor
[not found] ` <20010813222037.A20589@redhat.com>
2001-08-13 19:40 ` [RFC] sigsetjmp/siglongjmp on cygwin -- problem tracked down Andrew Cagney
2001-08-13 19:55 ` Christopher Faylor
2001-08-13 20:10 ` Daniel Jacobowitz [this message]
2001-08-13 20:18 ` [RFA] work around sigsetjmp/siglongjmp macro problems Christopher Faylor
2001-08-14 0:06 ` Eli Zaretskii
2001-08-14 7:40 ` Christopher Faylor
2001-08-14 9:34 ` Keith Seitz
2001-08-14 13:01 ` Elena Zannoni
2001-08-14 13:08 ` Christopher Faylor
2001-08-14 23:52 ` Eli Zaretskii
2001-08-14 23:49 ` Eli Zaretskii
2001-08-13 17:11 ` [RFC] sigsetjmp/siglongjmp on cygwin Andrew Cagney
2001-08-13 17:23 ` Keith Seitz
2001-08-03 1:33 ` Eli Zaretskii
2001-08-10 0:16 ` Andrew Cagney
2001-08-01 16:16 ` Andrew Cagney
2001-08-02 13:51 ` Christopher Faylor
2001-08-10 0:27 ` Andrew Cagney
2001-08-12 15:49 ` Ben Elliston
2001-08-13 2:03 ` Eli Zaretskii
2001-08-13 15:42 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010813201116.A12426@nevyn.them.org \
--to=drow@mvista.com \
--cc=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox