aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-tdep.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-08-09 16:27:39 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-08-09 16:27:39 +0000
commite0c621985547f16d502a707ca8fca082579ca0a7 (patch)
tree6ba289e53cf5f963709834dbdc5624a45acda144 /gdb/amd64-tdep.h
parent216ff8b48e8a59bf61c975b295004962a9518a71 (diff)
downloadgdb-e0c621985547f16d502a707ca8fca082579ca0a7.zip
gdb-e0c621985547f16d502a707ca8fca082579ca0a7.tar.gz
gdb-e0c621985547f16d502a707ca8fca082579ca0a7.tar.bz2
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.
Diffstat (limited to 'gdb/amd64-tdep.h')
-rw-r--r--gdb/amd64-tdep.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/amd64-tdep.h b/gdb/amd64-tdep.h
index c53be2b..1efb461 100644
--- a/gdb/amd64-tdep.h
+++ b/gdb/amd64-tdep.h
@@ -39,8 +39,14 @@ enum amd64_regnum
AMD64_RDI_REGNUM, /* %rdi */
AMD64_RBP_REGNUM, /* %rbp */
AMD64_RSP_REGNUM, /* %rsp */
- AMD64_R8_REGNUM = 8, /* %r8 */
- AMD64_R15_REGNUM = 15, /* %r15 */
+ AMD64_R8_REGNUM, /* %r8 */
+ AMD64_R9_REGNUM, /* %r9 */
+ AMD64_R10_REGNUM, /* %r10 */
+ AMD64_R11_REGNUM, /* %r11 */
+ AMD64_R12_REGNUM, /* %r12 */
+ AMD64_R13_REGNUM, /* %r13 */
+ AMD64_R14_REGNUM, /* %r14 */
+ AMD64_R15_REGNUM, /* %r15 */
AMD64_RIP_REGNUM, /* %rip */
AMD64_EFLAGS_REGNUM, /* %eflags */
AMD64_CS_REGNUM, /* %cs */