diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:38 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:38 -0400 |
commit | dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c (patch) | |
tree | 681b64140760ae67e7607002b451168fb19db776 /gdb/nds32-tdep.c | |
parent | 10eaee5f56611ce5f92ccd305849c0cc6addd130 (diff) | |
download | gdb-dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c.zip gdb-dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c.tar.gz gdb-dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c.tar.bz2 |
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.
Diffstat (limited to 'gdb/nds32-tdep.c')
-rw-r--r-- | gdb/nds32-tdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c index 14b091c..35375fb 100644 --- a/gdb/nds32-tdep.c +++ b/gdb/nds32-tdep.c @@ -1740,9 +1740,9 @@ nds32_extract_return_value (struct gdbarch *gdbarch, struct type *type, if (abi_use_fpr && calling_use_fpr) { if (len == 4) - regcache_cooked_read (regcache, tdep->fs0_regnum, valbuf); + regcache->cooked_read (tdep->fs0_regnum, valbuf); else if (len == 8) - regcache_cooked_read (regcache, NDS32_FD0_REGNUM, valbuf); + regcache->cooked_read (NDS32_FD0_REGNUM, valbuf); else internal_error (__FILE__, __LINE__, _("Cannot extract return value of %d bytes " @@ -1788,7 +1788,7 @@ nds32_extract_return_value (struct gdbarch *gdbarch, struct type *type, } else if (len == 4) { - regcache_cooked_read (regcache, NDS32_R0_REGNUM, valbuf); + regcache->cooked_read (NDS32_R0_REGNUM, valbuf); } else if (len < 8) { @@ -1805,8 +1805,8 @@ nds32_extract_return_value (struct gdbarch *gdbarch, struct type *type, } else { - regcache_cooked_read (regcache, NDS32_R0_REGNUM, valbuf); - regcache_cooked_read (regcache, NDS32_R0_REGNUM + 1, valbuf + 4); + regcache->cooked_read (NDS32_R0_REGNUM, valbuf); + regcache->cooked_read (NDS32_R0_REGNUM + 1, valbuf + 4); } } } |