diff options
author | H.J. Lu <hjl@lucon.org> | 2007-07-16 18:34:50 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2007-07-16 18:34:50 +0000 |
commit | e2488d4c346c3ecd30330097cc40fa5e08cc84ca (patch) | |
tree | bb1c72889f022c1a316e41d3c72e9505d9d52653 /gdb/i386-linux-nat.c | |
parent | f97dbb52ce40f7227e0fc067006131a192e46799 (diff) | |
download | gdb-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.c | 3 |
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 = ®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 |