From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 211793858424; Fri, 29 Jul 2022 10:20:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 211793858424 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: profile.c: drop i686 register access X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 7f42498be6cd47e9d3d46ec82374d703e3275ddf X-Git-Newrev: 20adacdca2fe2bd3d41a7287f77d42b4bf22f423 Message-Id: <20220729102005.211793858424@sourceware.org> Date: Fri, 29 Jul 2022 10:20:05 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2022 10:20:05 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D20adacdca2f= e2bd3d41a7287f77d42b4bf22f423 commit 20adacdca2fe2bd3d41a7287f77d42b4bf22f423 Author: Corinna Vinschen Date: Fri Jul 29 12:17:43 2022 +0200 Cygwin: profile.c: drop i686 register access =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/profil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/profil.c b/winsup/cygwin/profil.c index be59b4909..2c3a7a5eb 100644 --- a/winsup/cygwin/profil.c +++ b/winsup/cygwin/profil.c @@ -42,10 +42,10 @@ get_thrpc (HANDLE thr) ctx.ContextFlags =3D CONTEXT_CONTROL | CONTEXT_INTEGER; pc =3D (size_t) - 1; if (GetThreadContext (thr, &ctx)) { -#ifndef _WIN64 - pc =3D ctx.Eip; -#else +#ifdef __x86_64__ pc =3D ctx.Rip; +#else +#error unimplemented for this target #endif } ResumeThread (thr);