Cygwin: profile.c: drop i686 register access
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
7f42498be6
commit
20adacdca2
|
@ -42,10 +42,10 @@ get_thrpc (HANDLE thr)
|
|||
ctx.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER;
|
||||
pc = (size_t) - 1;
|
||||
if (GetThreadContext (thr, &ctx)) {
|
||||
#ifndef _WIN64
|
||||
pc = ctx.Eip;
|
||||
#else
|
||||
#ifdef __x86_64__
|
||||
pc = ctx.Rip;
|
||||
#else
|
||||
#error unimplemented for this target
|
||||
#endif
|
||||
}
|
||||
ResumeThread (thr);
|
||||
|
|
Loading…
Reference in New Issue