This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PING PATCH: Update x86 stack align analyzer


> Date: Wed, 6 Aug 2008 10:07:06 -0700
> From: "H.J. Lu" <hjl.tools@gmail.com>
> 
> PING.

I'll try to look at it tonight.

> 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.
> >
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]