aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2007-05-18 19:45:19 +0000
committerCaroline Tice <cmtice@google.com>2007-05-18 19:45:19 +0000
commitf372da99abc824b501882845491115bdd6132565 (patch)
tree00a7c2e570a637e5b13cce4c8c423617c7cb4772 /gdb
parent42be36b328ae784ae6981da7c7cab95b67ed7737 (diff)
downloadgdb-f372da99abc824b501882845491115bdd6132565.zip
gdb-f372da99abc824b501882845491115bdd6132565.tar.gz
gdb-f372da99abc824b501882845491115bdd6132565.tar.bz2
Accidentally left this out of previous commit; part of adding ability
to report when a variable's value is uninitialized.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/value.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h
index bbf662d..5c0a2ab 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -193,6 +193,12 @@ extern int value_contents_equal (struct value *val1, struct value *val2);
extern int value_optimized_out (struct value *value);
extern void set_value_optimized_out (struct value *value, int val);
+/* 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 (struct value *);
+extern void set_value_initialized (struct value *, int);
+
/* While the following fields are per- VALUE .CONTENT .PIECE (i.e., a
single value might have multiple LVALs), this hacked interface is
limited to just the first PIECE. Expect further change. */