diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-11-18 01:19:47 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-11-18 01:19:47 +0000 |
commit | 5d46fc98ac11f615b291f09ba3ac05d97e3b2254 (patch) | |
tree | 8ade4b937482373c9ab94ec7b50c30ba1c631f90 /gdb/i386-linux-nat.c | |
parent | ad098f236c8c96786fe20673efaf9c0352a36b93 (diff) | |
download | gdb-5d46fc98ac11f615b291f09ba3ac05d97e3b2254.tar.gz |
* i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
of accessing registers[] directly.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r-- | gdb/i386-linux-nat.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 |