From c71bb1cf63afec7dd2303fd698c33b887441d1c8 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Wed, 8 Feb 2012 14:38:25 +0000 Subject: [PATCH] * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct %eflags offset. * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs) (amd64_sol2_gregset32_reg_offs): Likewise. --- gdb/ChangeLog | 7 +++++++ gdb/amd64-sol2-tdep.c | 2 +- gdb/i386-sol2-nat.c | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1d491887e7..eae43c99f1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2012-02-08 Rainer Orth + + * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct + %eflags offset. + * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs) + (amd64_sol2_gregset32_reg_offs): Likewise. + 2012-02-08 Joel Brobecker * solib-darwin.c (darwin_bfd_open): Make sure that the filename diff --git a/gdb/amd64-sol2-tdep.c b/gdb/amd64-sol2-tdep.c index 242c3e72ee..dbc65d4783 100644 --- a/gdb/amd64-sol2-tdep.c +++ b/gdb/amd64-sol2-tdep.c @@ -54,7 +54,7 @@ static int amd64_sol2_gregset_reg_offset[] = { 1 * 8, 0 * 8, /* ... %r15 */ 17 * 8, /* %rip */ - 16 * 8, /* %eflags */ + 19 * 8, /* %eflags */ 18 * 8, /* %cs */ 21 * 8, /* %ss */ 25 * 8, /* %ds */ diff --git a/gdb/i386-sol2-nat.c b/gdb/i386-sol2-nat.c index e9fc63df84..bd8643e952 100644 --- a/gdb/i386-sol2-nat.c +++ b/gdb/i386-sol2-nat.c @@ -68,7 +68,7 @@ static int amd64_sol2_gregset64_reg_offset[] = { 1 * 8, 0 * 8, /* ... %r15 */ 17 * 8, /* %rip */ - 16 * 8, /* %eflags */ + 19 * 8, /* %eflags */ 18 * 8, /* %cs */ 21 * 8, /* %ss */ 25 * 8, /* %ds */ @@ -89,7 +89,7 @@ static int amd64_sol2_gregset32_reg_offset[] = { 9 * 8, /* %esi */ 8 * 8, /* %edi */ 17 * 8, /* %eip */ - 16 * 8, /* %eflags */ + 19 * 8, /* %eflags */ 18 * 8, /* %cs */ 21 * 8, /* %ss */ 25 * 8, /* %ds */ -- 2.34.1