2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Aug 2008 16:27:39 +0000 (16:27 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Aug 2008 16:27:39 +0000 (16:27 +0000)
commite0c621985547f16d502a707ca8fca082579ca0a7
tree6ba289e53cf5f963709834dbdc5624a45acda144
parent216ff8b48e8a59bf61c975b295004962a9518a71
2008-08-09  Xuepeng Guo  <xuepeng.guo@intel.com>
    H.J. Lu  <hongjiu.lu@intel.com>
    Mark Kettenis <kettenis@gnu.org>

* 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): Use saved_sp_reg if it is invalid.  Don't set
%rip to 8 when halfway aligning the stack.

* 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 -1.
(i386_analyze_stack_align): Rewrite.
(i386_frame_cache): Use saved_sp_reg if it is valid.
gdb/ChangeLog
gdb/amd64-tdep.c
gdb/amd64-tdep.h
gdb/i386-tdep.c