profile: Tweak get_thrpc for ARM

git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@6637 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-crt/profile/profil.c b/mingw-w64-crt/profile/profil.c
index eb41c08..6fed2e9 100644
--- a/mingw-w64-crt/profile/profil.c
+++ b/mingw-w64-crt/profile/profil.c
@@ -43,10 +43,12 @@
   ctx.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER;
   pc = (size_t) - 1;
   if (GetThreadContext (thr, &ctx)) {
-#ifndef _WIN64
-    pc = ctx.Eip;
-#else
+#if defined(_AMD64_) || defined(__x86_64__)
     pc = ctx.Rip;
+#elif defined(_ARM_) || defined(__arm__)
+    pc = ctx.Pc;
+#elif defined(_X86_) || defined(__i386__)
+    pc = ctx.Eip;
 #endif
   }
   ResumeThread (thr);