aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 7aee1c1..4de7026 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -753,7 +753,7 @@ readable_regcache::cooked_read_value (int regnum)
if (cooked_read (regnum,
value_contents_raw (result).data ()) == REG_UNAVAILABLE)
mark_value_bytes_unavailable (result, 0,
- value_type (result)->length ());
+ result->type ()->length ());
return result;
}