diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 16:26:38 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:17 -0700 |
commit | 8181b7b65787041f16d08a5619789cece42b2553 (patch) | |
tree | f8ceffd162c02abca61280ba5d8c1cfdac3d70dc /gdb/value.h | |
parent | aa9f4538ccbed2b5a84ece57c047e4f68a38c69e (diff) | |
download | fsf-binutils-gdb-8181b7b65787041f16d08a5619789cece42b2553.zip fsf-binutils-gdb-8181b7b65787041f16d08a5619789cece42b2553.tar.gz fsf-binutils-gdb-8181b7b65787041f16d08a5619789cece42b2553.tar.bz2 |
Turn set_value_component_location into method
This turns set_value_component_location into a method of value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/value.h b/gdb/value.h index 6cc845c..448f012 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -539,6 +539,10 @@ public: LVAL_MEMORY. */ void force_lval (CORE_ADDR); + /* Set this values's location as appropriate for a component of + WHOLE --- regardless of what kind of lvalue WHOLE is. */ + void set_component_location (const struct value *whole); + /* Type of value; either not an lval, or one of the various different possible kinds of lval. */ @@ -858,11 +862,6 @@ struct lval_funcs extern void error_value_optimized_out (void); -/* Set COMPONENT's location as appropriate for a component of WHOLE - --- regardless of what kind of lvalue WHOLE is. */ -extern void set_value_component_location (struct value *component, - const struct value *whole); - /* While the following fields are per- VALUE .CONTENT .PIECE (i.e., a single value might have multiple LVALs), this hacked interface is limited to just the first PIECE. Expect further change. */ |