Cygwin: profile.c: drop i686 register access

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-07-29 12:17:43 +02:00
parent 7f42498be6
commit 20adacdca2
1 changed files with 3 additions and 3 deletions

View File

@ -42,10 +42,10 @@ get_thrpc (HANDLE thr)
ctx.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER; ctx.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER;
pc = (size_t) - 1; pc = (size_t) - 1;
if (GetThreadContext (thr, &ctx)) { if (GetThreadContext (thr, &ctx)) {
#ifndef _WIN64 #ifdef __x86_64__
pc = ctx.Eip;
#else
pc = ctx.Rip; pc = ctx.Rip;
#else
#error unimplemented for this target
#endif #endif
} }
ResumeThread (thr); ResumeThread (thr);