From: mquinson Date: Wed, 23 Jan 2008 14:29:01 +0000 (+0000) Subject: Damit, leftover of the gcc syntax for inline assembly X-Git-Tag: v3.3~643 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/aec1891acd3a43ea3b6c2501ad94239733ee1694?hp=08aaedd334e95fc144248a31cf6411ecf1b08052 Damit, leftover of the gcc syntax for inline assembly git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5222 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/backtrace_windows.c b/src/xbt/backtrace_windows.c index 3845ae3def..00ab8f96c4 100644 --- a/src/xbt/backtrace_windows.c +++ b/src/xbt/backtrace_windows.c @@ -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;