Hello André,

The patch is fine beside one thing:

Index: mingw-w64-crt/profile/profil.c
===================================================================
--- mingw-w64-crt/profile/profil.c (Revision 6627)
+++ mingw-w64-crt/profile/profil.c (Arbeitskopie)
@@ -43,9 +43,11 @@
   ctx.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER;
   pc = (size_t) - 1;
   if (GetThreadContext (thr, &ctx)) {
-#ifndef _WIN64
+#if defined(_AMD64_) || defined(__x86_64__)
     pc = ctx.Eip;
^^ Wrong  has to be ctx.Rip;
-#else
+#elif defined(_ARM_) || defined(__arm__)
+    pc = ctx.Pc;
+#elif defined(_X86_) || defined(__i386__)
     pc = ctx.Rip;
^^ And here it is ctx.Eip;
#endif
   }

After fixing this, please apply.

Thanks,
Kai

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to