diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 12:12:39 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | b9f74d5432ffeef0e2281cb09c28d4b6d0371603 (patch) | |
tree | 1c3a0a540a84dbb2cd0188166de8de451ba2580a /gdb/value.h | |
parent | c8580184bbd1af58769d143b23d254737b08de9d (diff) | |
download | gdb-b9f74d5432ffeef0e2281cb09c28d4b6d0371603.zip gdb-b9f74d5432ffeef0e2281cb09c28d4b6d0371603.tar.gz gdb-b9f74d5432ffeef0e2281cb09c28d4b6d0371603.tar.bz2 |
Turn value_computed_closure and value_computed_funcs functions into methods
This changes the value_computed_funcs and value_computed_closure
functions 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 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/value.h b/gdb/value.h index 73783f8..a0455ed 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -301,6 +301,15 @@ struct value void set_stack (int val) { m_stack = val; } + /* If this value is lval_computed, return its lval_funcs + structure. */ + const struct lval_funcs *computed_funcs () const; + + /* If this value is lval_computed, return its closure. The meaning + of the returned value depends on the functions this value + uses. */ + void *computed_closure () const; + /* Type of value; either not an lval, or one of the various different possible kinds of lval. */ @@ -565,15 +574,6 @@ extern struct value *allocate_computed_value (struct type *type, extern struct value *allocate_optimized_out_value (struct type *type); -/* If VALUE is lval_computed, return its lval_funcs structure. */ - -extern const struct lval_funcs *value_computed_funcs (const struct value *); - -/* If VALUE is lval_computed, return its closure. The meaning of the - returned value depends on the functions VALUE uses. */ - -extern void *value_computed_closure (const struct value *value); - /* Throw an error complaining that the value has been optimized out. */ |