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:
parent
10eaee5f56
commit
dca08e1fe1
31 changed files with 127 additions and 143 deletions
|
@ -529,17 +529,17 @@ microblaze_extract_return_value (struct type *type, struct regcache *regcache,
|
|||
switch (TYPE_LENGTH (type))
|
||||
{
|
||||
case 1: /* return last byte in the register. */
|
||||
regcache_cooked_read (regcache, MICROBLAZE_RETVAL_REGNUM, buf);
|
||||
regcache->cooked_read (MICROBLAZE_RETVAL_REGNUM, buf);
|
||||
memcpy(valbuf, buf + MICROBLAZE_REGISTER_SIZE - 1, 1);
|
||||
return;
|
||||
case 2: /* return last 2 bytes in register. */
|
||||
regcache_cooked_read (regcache, MICROBLAZE_RETVAL_REGNUM, buf);
|
||||
regcache->cooked_read (MICROBLAZE_RETVAL_REGNUM, buf);
|
||||
memcpy(valbuf, buf + MICROBLAZE_REGISTER_SIZE - 2, 2);
|
||||
return;
|
||||
case 4: /* for sizes 4 or 8, copy the required length. */
|
||||
case 8:
|
||||
regcache_cooked_read (regcache, MICROBLAZE_RETVAL_REGNUM, buf);
|
||||
regcache_cooked_read (regcache, MICROBLAZE_RETVAL_REGNUM+1, buf+4);
|
||||
regcache->cooked_read (MICROBLAZE_RETVAL_REGNUM, buf);
|
||||
regcache->cooked_read (MICROBLAZE_RETVAL_REGNUM + 1, buf+4);
|
||||
memcpy (valbuf, buf, TYPE_LENGTH (type));
|
||||
return;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue