aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 10:17:10 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commit4b53ca88831137e94a6882f224d755a2d32ab8ef (patch)
treed4a4f240db65c78ba1729fa68c01abe082b01114 /gdb/value.h
parent76675c4d0bc454ed1ae369f98ad848754d0e81a0 (diff)
downloadgdb-4b53ca88831137e94a6882f224d755a2d32ab8ef.zip
gdb-4b53ca88831137e94a6882f224d755a2d32ab8ef.tar.gz
gdb-4b53ca88831137e94a6882f224d755a2d32ab8ef.tar.bz2
Turn deprecated_value_modifiable into method
This changes deprecated_value_modifiable to be a method of value. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 146848b..befd417 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -209,6 +209,12 @@ struct value
void set_offset (LONGEST offset)
{ m_offset = offset; }
+ /* The comment from "struct value" reads: ``Is it modifiable? Only
+ relevant if lval != not_lval.''. Shouldn't the value instead be
+ not_lval and be done with it? */
+ int deprecated_modifiable () const
+ { return m_modifiable; }
+
/* Type of value; either not an lval, or one of the various
different possible kinds of lval. */
@@ -387,12 +393,6 @@ struct value
ULONGEST m_limited_length = 0;
};
-/* The comment from "struct value" reads: ``Is it modifiable? Only
- relevant if lval != not_lval.''. Shouldn't the value instead be
- not_lval and be done with it? */
-
-extern int deprecated_value_modifiable (const struct value *value);
-
/* If a value represents a C++ object, then the `type' field gives the
object's compile-time type. If the object actually belongs to some
class derived from `type', perhaps with other base classes and