summaryrefslogtreecommitdiff
path: root/gdb/elfread.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/elfread.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/elfread.c')
-rw-r--r--gdb/elfread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 6107a7fac69..ca684aab57e 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -923,7 +923,7 @@ elf_gnu_ifunc_resolve_addr (struct gdbarch *gdbarch, CORE_ADDR pc)
name_at_pc = NULL;
function = value::allocate (func_func_type);
- VALUE_LVAL (function) = lval_memory;
+ function->set_lval (lval_memory);
function->set_address (pc);
/* STT_GNU_IFUNC resolver functions usually receive the HWCAP vector as
@@ -1034,7 +1034,7 @@ elf_gnu_ifunc_resolver_return_stop (code_breakpoint *b)
gdb_assert (b->loc->next == NULL);
func_func = value::allocate (func_func_type);
- VALUE_LVAL (func_func) = lval_memory;
+ func_func->set_lval (lval_memory);
func_func->set_address (b->loc->related_address);
value = value::allocate (value_type);