* i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
(fill_gregset): Use regcache_raw_collect.
This commit is contained in:
parent
0382d099a6
commit
feae6502ea
2 changed files with 11 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
||||||
2004-05-15 Mark Kettenis <kettenis@gnu.org>
|
2004-05-15 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
|
||||||
|
(fill_gregset): Use regcache_raw_collect.
|
||||||
|
|
||||||
* config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
|
* config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
|
||||||
ppcobsd-tdep.c.
|
ppcobsd-tdep.c.
|
||||||
|
|
||||||
|
|
|
@ -123,14 +123,15 @@ cannot_fetch_register (int regnum)
|
||||||
void
|
void
|
||||||
supply_gregset (gregset_t *gregsetp)
|
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))
|
if (CANNOT_FETCH_REGISTER (regnum))
|
||||||
supply_register (i, NULL);
|
regcache_raw_supply (regcache, regnum, NULL);
|
||||||
else
|
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
|
void
|
||||||
fill_gregset (gregset_t *gregsetp, int regnum)
|
fill_gregset (gregset_t *gregsetp, int regnum)
|
||||||
{
|
{
|
||||||
|
struct regcache *regcache = current_regcache;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < I386_NUM_GREGS; i++)
|
for (i = 0; i < I386_NUM_GREGS; i++)
|
||||||
if ((regnum == -1 || regnum == i) && ! CANNOT_STORE_REGISTER (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"
|
#include "i387-tdep.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue