From dac9410586f447f37c64eba43a72c7dfd5625629 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 5 Nov 2003 22:54:46 +0000 Subject: [PATCH] * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of %rsp, %rip and %eflags to match ABI-change. --- gdb/ChangeLog | 5 +++++ gdb/amd64fbsd-tdep.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b3e3f4ecf..c07c1f837b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-11-05 Mark Kettenis + + * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of + %rsp, %rip and %eflags to match ABI-change. + 2003-11-05 Jeff Johnston * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field. diff --git a/gdb/amd64fbsd-tdep.c b/gdb/amd64fbsd-tdep.c index b2c3108b97..bb44ec032b 100644 --- a/gdb/amd64fbsd-tdep.c +++ b/gdb/amd64fbsd-tdep.c @@ -83,7 +83,7 @@ int amd64fbsd_sc_reg_offset[X86_64_NUM_GREGS] = 24 + 1 * 8, /* %rsi */ 24 + 0 * 8, /* %rdi */ 24 + 8 * 8, /* %rbp */ - 24 + 21 * 8, /* %rsp */ + 24 + 22 * 8, /* %rsp */ 24 + 4 * 8, /* %r8 */ 24 + 5 * 8, /* %r9 */ 24 + 9 * 8, /* %r10 */ @@ -92,8 +92,8 @@ int amd64fbsd_sc_reg_offset[X86_64_NUM_GREGS] = 24 + 12 * 8, /* %r13 */ 24 + 13 * 8, /* %r14 */ 24 + 14 * 8, /* %r15 */ - 24 + 18 * 8, /* %rip */ - 24 + 20 * 8, /* %eflags */ + 24 + 19 * 8, /* %rip */ + 24 + 21 * 8, /* %eflags */ -1, /* %ds */ -1, /* %es */ -1, /* %fs */