summaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2007-07-16 18:34:50 +0000
committerH.J. Lu <hjl@lucon.org>2007-07-16 18:34:50 +0000
commite2488d4c346c3ecd30330097cc40fa5e08cc84ca (patch)
treebb1c72889f022c1a316e41d3c72e9505d9d52653 /gdb/i386-linux-nat.c
parentf97dbb52ce40f7227e0fc067006131a192e46799 (diff)
downloadgdb-e2488d4c346c3ecd30330097cc40fa5e08cc84ca.tar.gz
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 a8d02954804..973cba78b62 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