diff options
Diffstat (limited to 'winsup/cygwin/profil.c')
-rw-r--r-- | winsup/cygwin/profil.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/winsup/cygwin/profil.c b/winsup/cygwin/profil.c index 30b3724..9578ab1 100644 --- a/winsup/cygwin/profil.c +++ b/winsup/cygwin/profil.c @@ -21,6 +21,7 @@ #include <errno.h> #include <pthread.h> #include "profil.h" +#include "register.h" #define SLEEPTIME (1000 / PROF_HZ) @@ -42,11 +43,7 @@ get_thrpc (HANDLE thr) ctx.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER; pc = (size_t) - 1; if (GetThreadContext (thr, &ctx)) { -#ifdef __x86_64__ - pc = ctx.Rip; -#else -#error unimplemented for this target -#endif + pc = ctx._CX_instPtr; } ResumeThread (thr); return pc; |