aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-14 09:34:53 -0700
committerTom Tromey <tom@tromey.com>2023-02-15 15:07:07 -0700
commitb2227e67b4bdee65b1240f725dd2ea214178d984 (patch)
tree7dbe02ca21d39eb917fcbf74771113914a4e1fd6 /gdb/value.h
parent141cd158423a5ee248245fb2075fd2e5a580cff2 (diff)
downloadgdb-b2227e67b4bdee65b1240f725dd2ea214178d984.zip
gdb-b2227e67b4bdee65b1240f725dd2ea214178d984.tar.gz
gdb-b2227e67b4bdee65b1240f725dd2ea214178d984.tar.bz2
Change value::m_modifiable to bool
This changes value::m_modifiable to be a bool and updates the various uses. Reviewed-By: Bruno Larsen <blarsen@redhat.com>
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 8b45f7f..9224718 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -132,7 +132,7 @@ private:
/* Values can only be created via "static constructors". */
explicit value (struct type *type_)
- : m_modifiable (1),
+ : m_modifiable (true),
m_lazy (1),
m_initialized (1),
m_stack (0),
@@ -228,11 +228,11 @@ public:
/* 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
+ bool deprecated_modifiable () const
{ return m_modifiable; }
/* Set or clear the modifiable flag. */
- void set_modifiable (int val)
+ void set_modifiable (bool val)
{ m_modifiable = val; }
LONGEST pointed_to_offset () const
@@ -619,7 +619,7 @@ private:
enum lval_type m_lval = not_lval;
/* Is it modifiable? Only relevant if lval != not_lval. */
- unsigned int m_modifiable : 1;
+ bool m_modifiable : 1;
/* If zero, contents of this value are in the contents field. If
nonzero, contents are in inferior. If the lval field is lval_memory,