From: Kevin Buettner Date: Sun, 18 Nov 2001 01:19:47 +0000 (+0000) Subject: * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a4067459977e8d635777ac60ba2c4f99da80b2e;p=binutils-gdb.git * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead of accessing registers[] directly. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1bfdf9cf276..422adec7f4a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-11-17 Kevin Buettner + + * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead + of accessing registers[] directly. + 2001-11-17 Kevin Buettner * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen() diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index fb32df0db3e..df0838b65dc 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -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 *) ®isters[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 *) ®isters[REGISTER_BYTE (I386_LINUX_ORIG_EAX_REGNUM)]; + regcache_collect (I386_LINUX_ORIG_EAX_REGNUM, regp + regmap[ORIG_EAX]); } #ifdef HAVE_PTRACE_GETREGS