summaryrefslogtreecommitdiff
path: root/gdb/aarch64-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-09 06:35:33 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:20 -0700
commit6f9c9d71c2420e9bc6825cef59a922f5fb863e1a (patch)
treed8a12b7cdd7bf1510afbfc13ea7f79449f99fffb /gdb/aarch64-tdep.c
parent43b5fba22365c6ddd0d60324833f279364b577e7 (diff)
downloadbinutils-gdb-6f9c9d71c2420e9bc6825cef59a922f5fb863e1a.tar.gz
Introduce set_lval method on value
This introduces the set_lval method on value, one step toward removing deprecated_lval_hack. Ultimately I think the goal should be for some of these set_* methods to be replaced with constructors; but I haven't done this, as the series is already too long. Other 'deprecated' methods can probably be handled the same way. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/aarch64-tdep.c')
-rw-r--r--gdb/aarch64-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index fa8db9c788d..0bf6085c43a 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -2783,7 +2783,7 @@ aarch64_pseudo_read_value (struct gdbarch *gdbarch, readable_regcache *regcache,
aarch64_gdbarch_tdep *tdep = gdbarch_tdep<aarch64_gdbarch_tdep> (gdbarch);
struct value *result_value = value::allocate (register_type (gdbarch, regnum));
- VALUE_LVAL (result_value) = lval_register;
+ result_value->set_lval (lval_register);
VALUE_REGNUM (result_value) = regnum;
if (is_w_pseudo_register (gdbarch, regnum))