aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-11-11 14:50:50 -0700
committerTom Tromey <tom@tromey.com>2022-12-19 08:19:00 -0700
commit4ec2227afb0a091fa94e1571bc5e117a2a6c8b01 (patch)
treea157d5f78871b263755c705f783b989dd164f87f /gdb/breakpoint.h
parentdad6b350f986a58abe469f4584ac515e7ac17879 (diff)
downloadbinutils-4ec2227afb0a091fa94e1571bc5e117a2a6c8b01.zip
binutils-4ec2227afb0a091fa94e1571bc5e117a2a6c8b01.tar.gz
binutils-4ec2227afb0a091fa94e1571bc5e117a2a6c8b01.tar.bz2
Use bool in bpstat
This changes bpstat to use 'bool' rather than 'char', and updates the uses.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index f7633d2..ac58c4a 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -664,7 +664,8 @@ struct breakpoint
const target_waitstatus &ws);
/* Check internal conditions of the breakpoint referred to by BS.
- If we should not stop for this breakpoint, set BS->stop to 0. */
+ If we should not stop for this breakpoint, set BS->stop to
+ false. */
virtual void check_status (struct bpstat *bs)
{
/* Always stop. */
@@ -1326,11 +1327,11 @@ struct bpstat
/* Old value associated with a watchpoint. */
value_ref_ptr old_val;
- /* Nonzero if this breakpoint tells us to print the frame. */
- char print;
+ /* True if this breakpoint tells us to print the frame. */
+ bool print;
- /* Nonzero if this breakpoint tells us to stop. */
- char stop;
+ /* True if this breakpoint tells us to stop. */
+ bool stop;
/* Tell bpstat_print and print_bp_stop_message how to print stuff
associated with this element of the bpstat chain. */