This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
PING PATCH: Update x86 stack align analyzer
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GDB <gdb-patches at sourceware dot org>
- Date: Wed, 6 Aug 2008 10:07:06 -0700
- Subject: PING PATCH: Update x86 stack align analyzer
PING.
H.J.
On Wed, Jul 30, 2008 at 2:11 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Gcc 4.4 revision 138335:
>
> http://gcc.gnu.org/ml/gcc-cvs/2008-07/msg01048.html
>
> introduced new ways to align stack. This patch teaches gdb how to
> recognize the new stack prologue. OK for trunk?
>
> Please CC me since I am not on the gdb-patches mailing list.
>
> Thanks.
>
>
> H.J.
> ----
> 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
> H.J. Lu <hongjiu.lu@intel.com>
>
> * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
> (amd64_init_frame_cache): Initialize saved_sp_reg.
> (amd64_analyze_stack_align): New.
> (amd64_analyze_prologue): Call it.
> (amd64_frame_cache): Try to use saved_sp_reg if frame is invalid.
>
> * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
> AMD64_R14_REGNUM.
>
> * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
> saved_sp_reg.
> (i386_alloc_frame_cache): Remove stack_align. Initialize
> saved_sp_reg to I386_ESP_REGNUM.
> (i386_analyze_stack_align): Rewrite.
> (i386_frame_cache): Use saved_sp_reg only if frame is invalid.
>