Use bool in bpstat

This changes bpstat to use 'bool' rather than 'char', and updates the
uses.
This commit is contained in:
Tom Tromey
2022-11-11 14:50:50 -07:00
parent dad6b350f9
commit 4ec2227afb
6 changed files with 31 additions and 30 deletions

View File

@@ -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;
}
}