Remove regcache_cooked_read

Remove regcache_cooked_read, update callers to use
readable_regcache::cooked_read instead.

gdb/ChangeLog:

	* regcache.h (regcache_cooked_read): Remove, update callers to
	use readable_regcache::cooked_read instead.
	* regcache.c (regcache_cooked_read): Remove.
This commit is contained in:
Simon Marchi
2018-05-30 14:54:38 -04:00
parent 10eaee5f56
commit dca08e1fe1
31 changed files with 127 additions and 143 deletions

View File

@ -725,7 +725,7 @@ tic6x_extract_return_value (struct type *valtype, struct regcache *regcache,
regcache_cooked_read_part (regcache, TIC6X_A4_REGNUM, 4 - len, len,
valbuf);
else
regcache_cooked_read (regcache, TIC6X_A4_REGNUM, valbuf);
regcache->cooked_read (TIC6X_A4_REGNUM, valbuf);
}
else if (len <= 8)
{
@ -736,13 +736,13 @@ tic6x_extract_return_value (struct type *valtype, struct regcache *regcache,
lower (even) register. */
if (byte_order == BFD_ENDIAN_BIG)
{
regcache_cooked_read (regcache, TIC6X_A4_REGNUM, valbuf + 4);
regcache_cooked_read (regcache, TIC6X_A5_REGNUM, valbuf);
regcache->cooked_read (TIC6X_A4_REGNUM, valbuf + 4);
regcache->cooked_read (TIC6X_A5_REGNUM, valbuf);
}
else
{
regcache_cooked_read (regcache, TIC6X_A4_REGNUM, valbuf);
regcache_cooked_read (regcache, TIC6X_A5_REGNUM, valbuf + 4);
regcache->cooked_read (TIC6X_A4_REGNUM, valbuf);
regcache->cooked_read (TIC6X_A5_REGNUM, valbuf + 4);
}
}
}