From 064591f1a09841a3b4d5d360f1a0a32179faa5f8 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 22 Jan 2008 10:45:12 +0000 Subject: [PATCH 1/1] Erm. Reindenting did not make the trick on assembly code git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5210 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/backtrace_windows.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/xbt/backtrace_windows.c b/src/xbt/backtrace_windows.c index 16cdd74a4b..46c842a939 100644 --- a/src/xbt/backtrace_windows.c +++ b/src/xbt/backtrace_windows.c @@ -139,11 +139,13 @@ 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 dbg_hlp_init(GetCurrentProcess()); + _asm pop eax + _asm mov context.Eip, eax + _asm mov eax, esp + _asm mov context.Esp, eax + _asm mov context.Ebp, ebp + + dbg_hlp_init(GetCurrentProcess()); if ((NULL == dbg_hlp) || (size <= 0) || (NULL == buffer)) { errno = EINVAL; -- 2.20.1