diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 11:11:17 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | c8580184bbd1af58769d143b23d254737b08de9d (patch) | |
tree | e7ef1c03117c1a42aa71e60f56442b02eb8a67a5 /gdb/value.h | |
parent | 3ee3b2700d59ec1048989a3bf190882740d2ea8b (diff) | |
download | fsf-binutils-gdb-c8580184bbd1af58769d143b23d254737b08de9d.zip fsf-binutils-gdb-c8580184bbd1af58769d143b23d254737b08de9d.tar.gz fsf-binutils-gdb-c8580184bbd1af58769d143b23d254737b08de9d.tar.bz2 |
Turn value_stack and set_value_stack functions into methods
This changes the value_stack and set_value_stack 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 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/value.h b/gdb/value.h index 80946c0..73783f8 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -295,6 +295,12 @@ struct value void set_enclosing_type (struct type *new_type); + int stack () const + { return m_stack; } + + void set_stack (int val) + { m_stack = val; } + /* Type of value; either not an lval, or one of the various different possible kinds of lval. */ @@ -568,9 +574,6 @@ extern const struct lval_funcs *value_computed_funcs (const struct value *); extern void *value_computed_closure (const struct value *value); -extern int value_stack (const struct value *); -extern void set_value_stack (struct value *value, int val); - /* Throw an error complaining that the value has been optimized out. */ |