diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 13:25:17 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced (patch) | |
tree | 20bca3a06c842e4eed5101debd1f672539e87714 /gdb/elfread.c | |
parent | cbe793af8831a7244de326d6b07c60c197f096a2 (diff) | |
download | gdb-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.zip gdb-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.tar.gz gdb-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.tar.bz2 |
Turn allocate_value into a static "constructor"
This changes allocate_value to be a static "constructor" of value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index 02d4735..6107a7f 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -922,7 +922,7 @@ elf_gnu_ifunc_resolve_addr (struct gdbarch *gdbarch, CORE_ADDR pc) else name_at_pc = NULL; - function = allocate_value (func_func_type); + function = value::allocate (func_func_type); VALUE_LVAL (function) = lval_memory; function->set_address (pc); @@ -1033,11 +1033,11 @@ elf_gnu_ifunc_resolver_return_stop (code_breakpoint *b) gdb_assert (b->type == bp_gnu_ifunc_resolver); gdb_assert (b->loc->next == NULL); - func_func = allocate_value (func_func_type); + func_func = value::allocate (func_func_type); VALUE_LVAL (func_func) = lval_memory; func_func->set_address (b->loc->related_address); - value = allocate_value (value_type); + value = value::allocate (value_type); gdbarch_return_value_as_value (gdbarch, func_func, value_type, regcache, &value, NULL); resolved_address = value_as_address (value); |