aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-14 09:40:35 -0700
committerTom Tromey <tom@tromey.com>2023-02-15 15:07:07 -0700
commita7c27481a077a32c5a7c5bce11904a60dcec7feb (patch)
treebbe89ce63f75f14d6913ff21f2863c254b08f78d /gdb/value.h
parenta5b210cb6980f6aa38ae339aeef40c82799822a1 (diff)
downloadgdb-a7c27481a077a32c5a7c5bce11904a60dcec7feb.zip
gdb-a7c27481a077a32c5a7c5bce11904a60dcec7feb.tar.gz
gdb-a7c27481a077a32c5a7c5bce11904a60dcec7feb.tar.bz2
Change value::m_initialized to bool
This changes value::m_initialized 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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 233f42d..41327eb 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -134,7 +134,7 @@ private:
explicit value (struct type *type_)
: m_modifiable (true),
m_lazy (true),
- m_initialized (1),
+ m_initialized (true),
m_stack (0),
m_is_zero (false),
m_in_history (false),
@@ -338,11 +338,11 @@ public:
/* 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
+ true = initialized; false = uninitialized. */
+ bool initialized () const
{ return m_initialized; }
- void set_initialized (int value)
+ void set_initialized (bool value)
{ m_initialized = value; }
/* If lval == lval_memory, return the address in the inferior. If
@@ -638,7 +638,7 @@ private:
bool m_lazy : 1;
/* If value is a variable, is it initialized or not. */
- unsigned int m_initialized : 1;
+ bool m_initialized : 1;
/* If value is from the stack. If this is set, read_stack will be
used instead of read_memory to enable extra caching. */