Fixed the handling of the _cmd parameter in the i386

ABI.

llvm-svn: 122118
This commit is contained in:
Sean Callanan 2010-12-18 00:32:25 +00:00
parent e169675474
commit ed85f908d6
1 changed files with 2 additions and 2 deletions

View File

@ -97,9 +97,9 @@ ABIMacOSX_i386::PrepareTrivialCall (Thread &thread,
if (thread.GetProcess().WriteMemory(sp, &this_argU32, sizeof(this_argU32), error) != sizeof(this_argU32))
return false;
if (thread.GetProcess().WriteMemory(sp, &cmd_argU32, sizeof(cmd_argU32), error) != sizeof(cmd_argU32))
if (thread.GetProcess().WriteMemory(sp + 4, &cmd_argU32, sizeof(cmd_argU32), error) != sizeof(cmd_argU32))
return false;
if (thread.GetProcess().WriteMemory(sp + 4, &argU32, sizeof(argU32), error) != sizeof(argU32))
if (thread.GetProcess().WriteMemory(sp + 8, &argU32, sizeof(argU32), error) != sizeof(argU32))
return false;
}
else if (this_arg)