delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/23/16:24:51

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=nF7FaV3tVDjWxFs7uRjAdBIjGEVdtzUahPByfYXGyDcR8uLDxebkh
iJPlv0+FRq3pK6gHVBeGRAtQGnsvHvh/PGRyxz77zAISbRVNyS9BmwFkZTuF38So
ZX+YmRb6M3iaEcQ0kZAMry17qaierrg06UY/fqzVpTtWtYqnI7ORmQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=14C2ovPJf6CRD9ol6Q8Wn76kJKo=; b=N5YAIQ/C/e8E1VdNgLFQuwPJKcNu
5/9IddF2QLT9+mMbKO2FpgjD+2FrgaF/jvooghjFQ4GOZ+lN+8iuuSFyTMPLqMPC
rb+KTvJY4Gd9e8Dud580X9MDV7uQebu4qzZEfpy1OvEpm460obgJ9/e9aW4wOFqa
dtQfM1zT6qUPxPA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Mon, 23 Feb 2015 22:24:27 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [PATCH] Teach gdb how to unwind cygwin _sigbe frames
Message-ID: <20150223212427.GB437@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1424715301-13516-1-git-send-email-jon DOT turney AT dronecode DOT org DOT uk>
MIME-Version: 1.0
In-Reply-To: <1424715301-13516-1-git-send-email-jon.turney@dronecode.org.uk>
User-Agent: Mutt/1.5.23 (2014-03-12)

--GcSOTaE82DYSpZPK
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb 23 18:15, Jon TURNEY wrote:
> I really wanted to do this by adding some DWARF CFI to the generated sigf=
e.s
> file, but there doesn't seem to currently be a way to correctly describe
> _sigbe's frame using that.

I was wondering about this already.  It seems weird if the CFI stuff
doesn't allow for a situation like that.

> So instead, write a custom unwinder for _sigbe frames, which gets the ret=
urn
> address from the sigstack.
>=20
> Implemented for i386 and amd64.

Cool.  Really.  But, shouldn't that go to the gdb-patches mailing list?

> 4. This unfortunately ends up hardcoding into gdb the offset of sigstackp=
tr in
> the cygwin TLS area from the top of stack, and so will break if that chan=
ges.
> Hopefully that doesn't happen to often.

It happens too often to be ignored.  Wouldn't it make sense to add
a cygwin_internal call to return tls offsets or addresses, the later
if the argument is a pointer to the stack or cygtls area?


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--GcSOTaE82DYSpZPK
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJU65qLAAoJEPU2Bp2uRE+gQpEP/jX8mJBtIDgEZhnlbAU3JddN
PFeVCIzxOUx6IRipYomsWsTMrIihfgP745/cKl795+Xw1YE62B4Ri7owx6JgT3Op
fYimVV2M5jiyCL/bnWyiIzmZC4m1bNiFYkLA2mVm5abTTsvLaXc9K8NWP88LOL5j
wlRnXayQ/An9KOYJG/jPPA8/eXMajviMI/C8XYYOEn8GxYWJCQYc2QGRv2nDeIVr
0ik5pmGwYuLIqjpknt8Krvg271bXWAvwhB3ywRWaKhIm43PuWFKZpMdS34fN51M3
Gv3sUK/yr+O4ULwh1ar6ZQD6W4vtOczZgIG/Vqcu+gNzTynFas+lehm3xmeeS2a9
ZtfkZyg9ztZgIEJrGdQzabEQIQNvpOd9XEZLa4ST5SYUz8ew9bVIAZopglj5MIQY
Y064pBET3JLPEGz1ESDXND9PvlJtsvFtTFPyxzTcvbIrhwvdaRbUFzcCmuoFKasn
oyrYi9jZ+NWQO9ib5d6k1tirREg1Oc3Vd4xKNF2ADiK8IEQgAExYFlEipBG0k4e0
FY/+yDAJw20mhiiy9NhhCu2FjVK293rOVoG5JGilIZLxTBbRFvUJdzhN6oTu/YUr
p0E0+AP38TQtUYlC5dwxf9aLk6dTIBy2QY450wim3NVS9Jp8db9j+JF0V25sEIAk
jFou4XQBINR3wnsehnUU
=MiMh
-----END PGP SIGNATURE-----

--GcSOTaE82DYSpZPK--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019