diff options
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 |