aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-07-16 18:34:50 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-07-16 18:34:50 +0000
commit2e024c20ebf22ba56d2b25498076c60cf957132e (patch)
treec51b7cf359cda12b45c958f07e8ea9af80a9c217 /gdb/i386-linux-nat.c
parent7be360d1f5f9c4fd52b6a78812bc1bdbd2e74988 (diff)
downloadgdb-2e024c20ebf22ba56d2b25498076c60cf957132e.zip
gdb-2e024c20ebf22ba56d2b25498076c60cf957132e.tar.gz
gdb-2e024c20ebf22ba56d2b25498076c60cf957132e.tar.bz2
2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
* i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias warning bug.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r--gdb/i386-linux-nat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index a8d0295..973cba7 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 = &regs;
if (ptrace (PTRACE_GETREGS, tid, 0, (int) &regs) < 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 *) &regs);
+ supply_gregset (regcache, (const elf_gregset_t *) regs_p);
}
/* Store all valid general-purpose registers in GDB's register array