diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 16:23:22 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:17 -0700 |
commit | aa9f4538ccbed2b5a84ece57c047e4f68a38c69e (patch) | |
tree | 89773923872228ec388b90f476001f51b2f7d74e /gdb/value.h | |
parent | d00664dbba2802bacfed2335b6f249fc418182a0 (diff) | |
download | gdb-aa9f4538ccbed2b5a84ece57c047e4f68a38c69e.zip gdb-aa9f4538ccbed2b5a84ece57c047e4f68a38c69e.tar.gz gdb-aa9f4538ccbed2b5a84ece57c047e4f68a38c69e.tar.bz2 |
Turn value_non_lval and value_force_lval into methods
This changes value_non_lval and value_force_lval to be methods of
value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/value.h b/gdb/value.h index 4ecaeb7..6cc845c 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -532,6 +532,13 @@ public: for LENGTH bits as optimized out. */ void mark_bits_optimized_out (LONGEST offset, LONGEST length); + /* Return a version of this that is non-lvalue. */ + struct value *non_lval (); + + /* Write contents of this value at ADDR and set its lval type to be + LVAL_MEMORY. */ + void force_lval (CORE_ADDR); + /* Type of value; either not an lval, or one of the various different possible kinds of lval. */ @@ -1446,10 +1453,6 @@ extern void preserve_values (struct objfile *); /* From values.c */ -extern struct value *value_non_lval (struct value *); - -extern void value_force_lval (struct value *, CORE_ADDR); - extern struct value *make_cv_value (int, int, struct value *); extern void preserve_one_value (struct value *, struct objfile *, htab_t); |