aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386bsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-05-15 17:04:10 +0000
committerMark Kettenis <kettenis@gnu.org>2004-05-15 17:04:10 +0000
commitfeae6502eab5208b73767a1070a644c292c19706 (patch)
tree1da39e6a6226990b3f5a1283ea708c96f5c581c5 /gdb/i386bsd-nat.c
parent0382d099a612344ae7cf591c7480a378cc11d02d (diff)
downloadgdb-feae6502eab5208b73767a1070a644c292c19706.zip
gdb-feae6502eab5208b73767a1070a644c292c19706.tar.gz
gdb-feae6502eab5208b73767a1070a644c292c19706.tar.bz2
* i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
(fill_gregset): Use regcache_raw_collect.
Diffstat (limited to 'gdb/i386bsd-nat.c')
-rw-r--r--gdb/i386bsd-nat.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c
index 0f06b2b..ab4d14c 100644
--- a/gdb/i386bsd-nat.c
+++ b/gdb/i386bsd-nat.c
@@ -123,14 +123,15 @@ cannot_fetch_register (int regnum)
void
supply_gregset (gregset_t *gregsetp)
{
- int i;
+ struct regcache *regcache = current_regcache;
+ int regnum;
- for (i = 0; i < I386_NUM_GREGS; i++)
+ for (regnum = 0; regnum < I386_NUM_GREGS; regnum++)
{
- if (CANNOT_FETCH_REGISTER (i))
- supply_register (i, NULL);
+ if (CANNOT_FETCH_REGISTER (regnum))
+ regcache_raw_supply (regcache, regnum, NULL);
else
- supply_register (i, REG_ADDR (gregsetp, i));
+ regcache_raw_supply (regcache, regnum, REG_ADDR (gregsetp, regnum));
}
}
@@ -141,11 +142,12 @@ supply_gregset (gregset_t *gregsetp)
void
fill_gregset (gregset_t *gregsetp, int regnum)
{
+ struct regcache *regcache = current_regcache;
int i;
for (i = 0; i < I386_NUM_GREGS; i++)
if ((regnum == -1 || regnum == i) && ! CANNOT_STORE_REGISTER (i))
- regcache_collect (i, REG_ADDR (gregsetp, i));
+ regcache_raw_collect (regcache, i, REG_ADDR (gregsetp, i));
}
#include "i387-tdep.h"