*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / i386-linux-nat.c
index a8d02954804c9c7e7779750a5eb4ae7e8c469a9c..973cba78b6286c03feb5f9cce5fa6d1124ca5c9c 100644 (file)
@@ -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
This page took 0.02415 seconds and 4 git commands to generate.