diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 12:22:01 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 8e5b19ad992b56cb3817dcbd4c656e2ffc3ee889 (patch) | |
tree | 5e18d990c15223fc25360d2d1f02e1f6cdea0ff9 /gdb/value.h | |
parent | 970441058c4fc01a3a78773a004196e3037825ed (diff) | |
download | binutils-8e5b19ad992b56cb3817dcbd4c656e2ffc3ee889.zip binutils-8e5b19ad992b56cb3817dcbd4c656e2ffc3ee889.tar.gz binutils-8e5b19ad992b56cb3817dcbd4c656e2ffc3ee889.tar.bz2 |
Turn value_initialized and set_value_initialized functions into methods
This changes the value_initialized and set_value_initialized 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 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gdb/value.h b/gdb/value.h index 30c2cb4..e813970 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -316,6 +316,15 @@ struct value enum lval_type lval () const { return m_lval; } + /* Set or return field indicating whether a variable is initialized or + not, based on debugging information supplied by the compiler. + 1 = initialized; 0 = uninitialized. */ + int initialized () const + { return m_initialized; } + + void set_initialized (int value) + { m_initialized = value; } + /* Type of value; either not an lval, or one of the various different possible kinds of lval. */ @@ -657,12 +666,6 @@ extern void mark_value_bytes_optimized_out (struct value *value, extern void mark_value_bits_optimized_out (struct value *value, LONGEST offset, LONGEST length); -/* Set or return field indicating whether a variable is initialized or - not, based on debugging information supplied by the compiler. - 1 = initialized; 0 = uninitialized. */ -extern int value_initialized (const struct value *); -extern void set_value_initialized (struct value *, int); - /* 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, |