mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-05 00:36:22 +00:00
* linux-x86-low.c (i386_emit_prologue): Save %ebx.
(i386_emit_epilogue): Restore %ebx.
This commit is contained in:
parent
63d97a2024
commit
bf15cbda54
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2011-08-31 Jie Zhang <jzhang918@gmail.com>
|
||||||
|
|
||||||
* server.c (step_thread): Remove definition.
|
* server.c (step_thread): Remove definition.
|
||||||
|
@ -2035,7 +2035,8 @@ i386_emit_prologue (void)
|
|||||||
{
|
{
|
||||||
EMIT_ASM32 (i386_prologue,
|
EMIT_ASM32 (i386_prologue,
|
||||||
"push %ebp\n\t"
|
"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
|
/* At this point, the raw regs base address is at 8(%ebp), and the
|
||||||
value pointer is at 12(%ebp). */
|
value pointer is at 12(%ebp). */
|
||||||
}
|
}
|
||||||
@ -2048,6 +2049,7 @@ i386_emit_epilogue (void)
|
|||||||
"mov %eax,(%ecx)\n\t"
|
"mov %eax,(%ecx)\n\t"
|
||||||
"mov %ebx,0x4(%ecx)\n\t"
|
"mov %ebx,0x4(%ecx)\n\t"
|
||||||
"xor %eax,%eax\n\t"
|
"xor %eax,%eax\n\t"
|
||||||
|
"pop %ebx\n\t"
|
||||||
"pop %ebp\n\t"
|
"pop %ebp\n\t"
|
||||||
"ret");
|
"ret");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user