-/* Functions specific to running gdb native on HPPA running Linux.
+/* Functions specific to running GDB native on HPPA running GNU/Linux.
+
Copyright 2004 Free Software Foundation, Inc.
This file is part of GDB.
if (CANNOT_FETCH_REGISTER (regno))
{
- supply_register (regno, NULL);
+ regcache_raw_supply (current_regcache, regno, NULL);
return;
}
for (i = 0; i < sizeof (greg_map) / sizeof (greg_map[0]); i++, regp++)
{
int regno = greg_map[i];
- supply_register (regno, regp);
+ regcache_raw_supply (current_regcache, regno, regp);
}
}
if (regno == -1 || regno == mregno)
{
- regcache_collect(mregno, &(*gregsetp)[i]);
+ regcache_raw_collect(current_regcache, mregno, &(*gregsetp)[i]);
}
}
}
for (regi = 0; regi <= 31; regi++)
{
from = (char *) &((*fpregsetp)[regi]);
- supply_register (2*regi + HPPA_FP0_REGNUM, from);
- supply_register (2*regi + HPPA_FP0_REGNUM + 1, from + 4);
+ regcache_raw_supply (current_regcache, 2*regi + HPPA_FP0_REGNUM, from);
+ regcache_raw_supply (current_regcache, 2*regi + HPPA_FP0_REGNUM + 1,
+ from + 4);
}
}
char *to = (char *) &((*fpregsetp)[(i - HPPA_FP0_REGNUM) / 2]);
if ((i - HPPA_FP0_REGNUM) & 1)
to += 4;
- regcache_collect (i, to);
+ regcache_raw_collect (current_regcache, i, to);
}
}