diff options
author | Tom Tromey <tom@tromey.com> | 2022-11-11 14:50:50 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-12-19 08:19:00 -0700 |
commit | 4ec2227afb0a091fa94e1571bc5e117a2a6c8b01 (patch) | |
tree | a157d5f78871b263755c705f783b989dd164f87f /gdb/break-catch-throw.c | |
parent | dad6b350f986a58abe469f4584ac515e7ac17879 (diff) | |
download | fsf-binutils-gdb-4ec2227afb0a091fa94e1571bc5e117a2a6c8b01.zip fsf-binutils-gdb-4ec2227afb0a091fa94e1571bc5e117a2a6c8b01.tar.gz fsf-binutils-gdb-4ec2227afb0a091fa94e1571bc5e117a2a6c8b01.tar.bz2 |
Use bool in bpstat
This changes bpstat to use 'bool' rather than 'char', and updates the
uses.
Diffstat (limited to 'gdb/break-catch-throw.c')
-rw-r--r-- | gdb/break-catch-throw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c index 0da3cbf..2fea27b 100644 --- a/gdb/break-catch-throw.c +++ b/gdb/break-catch-throw.c @@ -172,7 +172,7 @@ exception_catchpoint::check_status (struct bpstat *bs) std::string type_name; this->breakpoint::check_status (bs); - if (bs->stop == 0) + if (!bs->stop) return; if (self->pattern == NULL) @@ -200,7 +200,7 @@ exception_catchpoint::check_status (struct bpstat *bs) if (name != nullptr) { if (self->pattern->exec (name, 0, NULL, 0) != 0) - bs->stop = 0; + bs->stop = false; } } |