aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2019-09-21 19:50:40 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2019-09-21 20:03:08 -0400
commit4c1d86d9a8f7ddfbf7ff095a88a59497c8f6ddc9 (patch)
treeb8806e5372e235246ead14e0c6b30a9bd702692d /gdb/breakpoint.h
parent8f49fbcc76d846cfcda0d1ad19d5f405a1310f56 (diff)
downloadgdb-4c1d86d9a8f7ddfbf7ff095a88a59497c8f6ddc9.zip
gdb-4c1d86d9a8f7ddfbf7ff095a88a59497c8f6ddc9.tar.gz
gdb-4c1d86d9a8f7ddfbf7ff095a88a59497c8f6ddc9.tar.bz2
gdb: make watchpoint::val_valid a bool
gdb/ChangeLog: * breakpoint.h (struct watchpoint) <val_valid>: Change type to bool. * breakpoint.c (update_watchpoint): Assign false instead of 0, true instead of 1. (breakpoint_init_inferior): Likewise. (watchpoint_check): Likewise. (watch_command_1): Likewise. (invalidate_bp_value_on_memory_change): Likewise.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 80bb11c..9791032 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -817,9 +817,10 @@ struct watchpoint : public breakpoint
we do not know the value yet or the value was not readable. VAL
is never lazy. */
value_ref_ptr val;
- /* Nonzero if VAL is valid. If VAL_VALID is set but VAL is NULL,
+
+ /* True if VAL is valid. If VAL_VALID is set but VAL is NULL,
then an error occurred reading the value. */
- int val_valid;
+ bool val_valid;
/* When watching the location of a bitfield, contains the offset and size of
the bitfield. Otherwise contains 0. */