}
static unsigned char *
-register_data (const struct regcache *regcache, int n, int fetch)
+register_data (const struct regcache *regcache, int n)
{
return (regcache->registers
+ find_register_by_number (regcache->tdesc, n).offset / 8);
{
if (buf)
{
- memcpy (register_data (this, n, 0), buf, register_size (tdesc, n));
+ memcpy (register_data (this, n), buf, register_size (tdesc, n));
#ifndef IN_PROCESS_AGENT
if (register_status != NULL)
register_status[n] = REG_VALID;
}
else
{
- memset (register_data (this, n, 0), 0, register_size (tdesc, n));
+ memset (register_data (this, n), 0, register_size (tdesc, n));
#ifndef IN_PROCESS_AGENT
if (register_status != NULL)
register_status[n] = REG_UNAVAILABLE;
void
supply_register_zeroed (struct regcache *regcache, int n)
{
- memset (register_data (regcache, n, 0), 0,
+ memset (register_data (regcache, n), 0,
register_size (regcache->tdesc, n));
#ifndef IN_PROCESS_AGENT
if (regcache->register_status != NULL)
void
regcache::raw_collect (int n, void *buf) const
{
- memcpy (buf, register_data (this, n, 1), register_size (tdesc, n));
+ memcpy (buf, register_data (this, n), register_size (tdesc, n));
}
enum register_status
void
collect_register_as_string (struct regcache *regcache, int n, char *buf)
{
- bin2hex (register_data (regcache, n, 1), buf,
+ bin2hex (register_data (regcache, n), buf,
register_size (regcache->tdesc, n));
}
{
gdb_assert (buf != NULL);
- const unsigned char *regbuf = register_data (this, regnum, 1);
+ const unsigned char *regbuf = register_data (this, regnum);
int size = register_size (tdesc, regnum);
gdb_assert (size >= offset);