* i386-linux-nat.c (fill_gregset): Use regcache_collect() instead

of accessing registers[] directly.
This commit is contained in:
Kevin Buettner 2001-11-18 01:19:47 +00:00
parent 27758734ec
commit 8a40674599
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2001-11-17 Kevin Buettner <kevinb@redhat.com>
* i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
of accessing registers[] directly.
2001-11-17 Kevin Buettner <kevinb@redhat.com>
* i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()

View File

@ -322,11 +322,10 @@ fill_gregset (elf_gregset_t *gregsetp, int regno)
for (i = 0; i < NUM_GREGS; i++)
if ((regno == -1 || regno == i))
*(regp + regmap[i]) = *(elf_greg_t *) &registers[REGISTER_BYTE (i)];
regcache_collect (i, regp + regmap[i]);
if (regno == -1 || regno == I386_LINUX_ORIG_EAX_REGNUM)
*(regp + regmap[ORIG_EAX]) =
*(elf_greg_t *) &registers[REGISTER_BYTE (I386_LINUX_ORIG_EAX_REGNUM)];
regcache_collect (I386_LINUX_ORIG_EAX_REGNUM, regp + regmap[ORIG_EAX]);
}
#ifdef HAVE_PTRACE_GETREGS