delorie.com/archives/browse.cgi | search |
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=Fnu6Aj+mDoMyTPxqtEVzx1VFLn4QV04TWPMDDxfa/kmIOEZKR2J5C | |
abolPvff4/CykaGdKg1ZQveW219BDY5gJnHnAlmjODorzVOXFpLQyv8RfKenmSt4 | |
oXGyhixLqRgorASEta5kaF99K3lmpnmpjF/cHA/xzDdpTYAywRGhr8= | |
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=NXMNDBJP/lMN63xTWp0PIq5ga2w=; b=RUE+YZ9VxihxDKvYAiNqTNL5Uz6R | |
6JF9MdX9yaDK+aApKJlXgYUHu4WlUAKy0Uq9QxOk7F5s8jYL1n2CwXCkZodre1ou | |
148EfQf0aPU/BGC6lRlfbbA2FBXCx201vfCeiuFQvOGHAgs+Ri9tA4MPTLSgyVgS | |
nl59yT7qcsTJ+Do= | |
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.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Mon, 6 Jul 2015 16:52:18 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.1.0-0.4 |
Message-ID: | <20150706145218.GS2918@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <announce DOT 20150705213417 DOT GH2918 AT calimero DOT vinschen DOT de> <5599E4C5 DOT 1010109 AT cornell DOT edu> <20150706100158 DOT GJ2918 AT calimero DOT vinschen DOT de> <559A7F74 DOT 1000402 AT cornell DOT edu> <559A837F DOT 7070000 AT cornell DOT edu> |
MIME-Version: | 1.0 |
In-Reply-To: | <559A837F.7070000@cornell.edu> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--kb0TSCuX821Ar6UT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jul 6 09:32, Ken Brown wrote: > On 7/6/2015 9:15 AM, Ken Brown wrote: > >On 7/6/2015 6:01 AM, Corinna Vinschen wrote: > >>You can utilize tib and m for testing in emacs as well. Just do this: > >> > >> #include <windows.h> > >> > >> NT_TIB *tib; > >> MEMORY_BASIC_INFORMATION m; > >> > >> [...] > >> > >> in main: > >> > >> /* Record (approximately) where the stack begins. */ > >> stack_bottom =3D &stack_bottom_variable; > >> tib =3D (NT_TIB *) __readfsdword(PcTeb); > >> VirtualQuery (stack_bottom, &m, sizeof m); > > > >I'll try this next and report back. >=20 > PcTeb seems to be defined only on x86. What should I do on x86_64? Oh, sorry, I forgot. In theory you should call tib =3D (NT_TIB *) NtCurrentTeb (); but there's a problem in the way this inline function is defined which makes it unusable when not optimizing the code, at least on 32 bit. The above NtCurrentTeb works fine on x86_64, afaics. --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --kb0TSCuX821Ar6UT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVmpYiAAoJEPU2Bp2uRE+gfwoP/iIlUHCSsvsYTtcmQaL7Nuas MTSMx/tzkDKRFbseHsEz7boKz/Dax/+ZZiqrL1Pvdw4lraHhHRJJWl/MWuB0Vg22 0u5OyYP3bFN5GYlxeu4gtbhqttIm7bwX7x8oZdGUnt23Pjq/tkXPyH5HcVLBZLNJ v1Z/sOg8WXv+DrgsfYidWSzajoua5i5SeJ/5cRQD2Za6qqHjsDq6+WfZkPhJPkb5 cuQPsS2sk8YK3LvsOOMECA5Rcrpegu1X7aM9TlfiI6mXpqV8ARGGesSFsM091t7Z sLiWqsj8QOSBoEGxNDydcVKYcryJf/HYeem1Gn0Fzu2d5uvcXnhIU27heRvb9t7A AucSEjpHOb9/SNuVQHOu9Cm2wspOKdLqshzd3gYM/+kK6fD9qmPUAlcFJKpTlqXE MwNmi+iqkhU/+lBBSwFsFS3HMS8TFZTxvUFUhN+HL1oRAV7SHWtk7CgVczp2eAJX DSJhA+XD+r9C6JqMq3d65FPfIfD9oo4RR/Mg7U0NuXV+IDi1MStJ8frw43TY6SS+ TDHD7XJQ9fhslLHOC/RGAyC0imL4EoOm2NcpeehR5A6ZUB7k1shj5tSeCXJ1784q jNdt6jZ9XhxoG/mk4dCXCjZq6PkDmSxsUIx8kAMGlFGO0cv/e04x+4Vg9S/ctfoW TkB2jDvj4af4qVrDF6sf =6Foz -----END PGP SIGNATURE----- --kb0TSCuX821Ar6UT--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |