* i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
with %eax.
This commit is contained in:
parent
a5d61f6618
commit
7270b6ed5a
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-10-06 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
|
||||||
|
with %eax.
|
||||||
|
|
||||||
2003-10-06 Andrew Cagney <cagney@redhat.com>
|
2003-10-06 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
|
* Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
|
||||||
|
|
|
@ -499,12 +499,14 @@ i386_analyze_frame_setup (CORE_ADDR pc, CORE_ADDR current_pc,
|
||||||
xorl %ebx, %ebx
|
xorl %ebx, %ebx
|
||||||
xorl %ecx, %ecx
|
xorl %ecx, %ecx
|
||||||
xorl %edx, %edx
|
xorl %edx, %edx
|
||||||
|
xorl %eax, %eax
|
||||||
|
|
||||||
and the equivalent
|
and the equivalent
|
||||||
|
|
||||||
subl %ebx, %ebx
|
subl %ebx, %ebx
|
||||||
subl %ecx, %ecx
|
subl %ecx, %ecx
|
||||||
subl %edx, %edx
|
subl %edx, %edx
|
||||||
|
subl %eax, %eax
|
||||||
|
|
||||||
Make sure we only skip these instructions if we later see the
|
Make sure we only skip these instructions if we later see the
|
||||||
`movl %esp, %ebp' that actually sets up the frame. */
|
`movl %esp, %ebp' that actually sets up the frame. */
|
||||||
|
@ -516,6 +518,7 @@ i386_analyze_frame_setup (CORE_ADDR pc, CORE_ADDR current_pc,
|
||||||
case 0xdb: /* %ebx */
|
case 0xdb: /* %ebx */
|
||||||
case 0xc9: /* %ecx */
|
case 0xc9: /* %ecx */
|
||||||
case 0xd2: /* %edx */
|
case 0xd2: /* %edx */
|
||||||
|
case 0xc0: /* %eax */
|
||||||
skip += 2;
|
skip += 2;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue