aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-01 08:25:21 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:17 -0700
commite6cf1e1b42c1e44610cc8b2997f883275f0b244d (patch)
tree18abbb3b52e24a6abed2d9d6d3214956dfac449b /gdb/value.h
parent6c49729e593cd1577080b082be81fe113f8d7943 (diff)
downloadbinutils-e6cf1e1b42c1e44610cc8b2997f883275f0b244d.zip
binutils-e6cf1e1b42c1e44610cc8b2997f883275f0b244d.tar.gz
binutils-e6cf1e1b42c1e44610cc8b2997f883275f0b244d.tar.bz2
Add value::set_modifiable
This introduces a value::set_modifiable and changes a couple of spots to use it. I'm not completely sure the comments by deprecated_modifiable are correct any more. Perhaps they should be removed and the method renamed. Like so many before me, though, I've deferred investigation of the issue. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 7e232f3..f35bfc7 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -229,6 +229,10 @@ public:
int deprecated_modifiable () const
{ return m_modifiable; }
+ /* Set or clear the modifiable flag. */
+ void set_modifiable (int val)
+ { m_modifiable = val; }
+
LONGEST pointed_to_offset () const
{ return m_pointed_to_offset; }