From: H.J. Lu Date: Mon, 16 Jul 2007 18:34:50 +0000 (+0000) Subject: 2007-07-16 H.J. Lu X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=2e024c20ebf22ba56d2b25498076c60cf957132e;p=deliverable%2Fbinutils-gdb.git 2007-07-16 H.J. Lu * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias warning bug. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f211744e3c..eb4892531a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-07-16 H.J. Lu + + * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias + warning bug. + 2007-07-13 Kevin Buettner * mep-tdep.c (mep_analyze_prologue): Update comment for BRA diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index a8d0295480..973cba78b6 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -246,6 +246,7 @@ static void fetch_regs (struct regcache *regcache, int tid) { elf_gregset_t regs; + elf_gregset_t *regs_p = ®s; if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0) { @@ -260,7 +261,7 @@ fetch_regs (struct regcache *regcache, int tid) perror_with_name (_("Couldn't get registers")); } - supply_gregset (regcache, (const elf_gregset_t *) ®s); + supply_gregset (regcache, (const elf_gregset_t *) regs_p); } /* Store all valid general-purpose registers in GDB's register array