Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Damit, leftover of the gcc syntax for inline assembly
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 23 Jan 2008 14:29:01 +0000 (14:29 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 23 Jan 2008 14:29:01 +0000 (14:29 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5222 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/backtrace_windows.c

index 3845ae3..00ab8f9 100644 (file)
@@ -201,11 +201,11 @@ int backtrace(void **buffer, int size)
   /* ebp points on stack base */
   /* esp points on stack pointer, ie on last stacked element (current element) */
   _asm call $ + 5
-  _asm pop %eax
-  _asm mov context.Eip, %eax
-  _asm mov %eax, %esp
-  _asm mov context.Esp, %eax
-  _asm mov context.Ebp, %ebp
+  _asm pop eax
+  _asm mov context.Eip, eax
+  _asm mov eax, esp
+  _asm mov context.Esp, eax
+  _asm mov context.Ebp, ebp
      
   if ((NULL == hlp_dbg_instance) || (size <= 0) || (NULL == buffer)) {
     errno = EINVAL;