gdb: make watchpoint::val_valid a bool
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 21 Sep 2019 23:50:40 +0000 (19:50 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 22 Sep 2019 00:03:08 +0000 (20:03 -0400)
commit4c1d86d9a8f7ddfbf7ff095a88a59497c8f6ddc9
treeb8806e5372e235246ead14e0c6b30a9bd702692d
parent8f49fbcc76d846cfcda0d1ad19d5f405a1310f56
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.
gdb/breakpoint.c
gdb/breakpoint.h