diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 13:30:54 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:08 -0700 |
commit | b27556e3c10e197cc31021649a6113bb305b970e (patch) | |
tree | 9de98f1568e25b39a573964b113b380428b1b9b1 /gdb/findvar.c | |
parent | b64e260290108f8eb4f7a75f80a8355448aef7e4 (diff) | |
download | gdb-b27556e3c10e197cc31021649a6113bb305b970e.zip gdb-b27556e3c10e197cc31021649a6113bb305b970e.tar.gz gdb-b27556e3c10e197cc31021649a6113bb305b970e.tar.bz2 |
Turn allocate_optimized_out_value into static "constructor"
This turns allocate_optimized_out_value into a static "constructor" of
value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index b59962c..048e439 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -769,7 +769,7 @@ language_defn::read_var_value (struct symbol *var, case LOC_OPTIMIZED_OUT: if (is_dynamic_type (type)) type = resolve_dynamic_type (type, {}, /* Unused address. */ 0); - return allocate_optimized_out_value (type); + return value::allocate_optimized_out (type); default: error (_("Cannot look up value of a botched symbol `%s'."), |