This is the mail archive of the gdb-patches@sources.redhat.com 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]

[PATCH] Adjust for FreeBSD/amd64 `struct sigcontext' ABI change


Backwards compatibility was deliberately broken.  Supporting the old
ABI is difficult, and the new one will be the official one when
FreeBSD/amd64 reaches tier-1 status.

Committed,

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
	%rsp, %rip and %eflags to match ABI-change.

Index: amd64fbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64fbsd-tdep.c,v
retrieving revision 1.3
diff -u -p -r1.3 amd64fbsd-tdep.c
--- amd64fbsd-tdep.c 11 Oct 2003 14:54:24 -0000 1.3
+++ amd64fbsd-tdep.c 5 Nov 2003 22:49:09 -0000
@@ -83,7 +83,7 @@ int amd64fbsd_sc_reg_offset[X86_64_NUM_G
   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_G
   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 */


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