* i386-tdep.c (i386_analyze_stack_align): Add comment.
This commit is contained in:
parent
e4a3b5a47e
commit
92a56b20f1
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2007-01-05 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* i386-tdep.c (i386_analyze_stack_align): Add comment.
|
||||||
|
|
||||||
2007-01-05 Joel Brobecker <brobecker@adacore.com>
|
2007-01-05 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* NEWS: Add entries for new catch commands.
|
* NEWS: Add entries for new catch commands.
|
||||||
|
|
|
@ -497,6 +497,10 @@ static CORE_ADDR
|
||||||
i386_analyze_stack_align (CORE_ADDR pc, CORE_ADDR current_pc,
|
i386_analyze_stack_align (CORE_ADDR pc, CORE_ADDR current_pc,
|
||||||
struct i386_frame_cache *cache)
|
struct i386_frame_cache *cache)
|
||||||
{
|
{
|
||||||
|
/* The register used by the compiler to perform the stack re-alignment
|
||||||
|
is, in order of preference, either %ecx, %edx, or %eax. GCC should
|
||||||
|
never use %ebx as it always treats it as callee-saved, whereas
|
||||||
|
the compiler can only use caller-saved registers. */
|
||||||
static const gdb_byte insns_ecx[10] = {
|
static const gdb_byte insns_ecx[10] = {
|
||||||
0x8d, 0x4c, 0x24, 0x04, /* leal 4(%esp), %ecx */
|
0x8d, 0x4c, 0x24, 0x04, /* leal 4(%esp), %ecx */
|
||||||
0x83, 0xe4, 0xf0, /* andl $-16, %esp */
|
0x83, 0xe4, 0xf0, /* andl $-16, %esp */
|
||||||
|
|
Loading…
Add table
Reference in a new issue