(i386_emit_epilogue): Restore %ebx.
+2011-09-08 Stan Shebs <stan@codesourcery.com>
+
+ * linux-x86-low.c (i386_emit_prologue): Save %ebx.
+ (i386_emit_epilogue): Restore %ebx.
+
2011-08-31 Jie Zhang <jzhang918@gmail.com>
* server.c (step_thread): Remove definition.
{
EMIT_ASM32 (i386_prologue,
"push %ebp\n\t"
- "mov %esp,%ebp");
+ "mov %esp,%ebp\n\t"
+ "push %ebx");
/* At this point, the raw regs base address is at 8(%ebp), and the
value pointer is at 12(%ebp). */
}
"mov %eax,(%ecx)\n\t"
"mov %ebx,0x4(%ecx)\n\t"
"xor %eax,%eax\n\t"
+ "pop %ebx\n\t"
"pop %ebp\n\t"
"ret");
}