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

@@ -598,7 +598,7 @@ get_breakpoint_cond_ext_lang (struct breakpoint *b,
/* Return whether a stop condition for breakpoint B says to stop.
True is also returned if there is no stop condition for B. */
int
bool
breakpoint_ext_lang_cond_says_stop (struct breakpoint *b)
{
enum ext_lang_bp_stop stop = EXT_LANG_BP_STOP_UNSET;
@@ -627,7 +627,7 @@ breakpoint_ext_lang_cond_says_stop (struct breakpoint *b)
}
}
return stop == EXT_LANG_BP_STOP_NO ? 0 : 1;
return stop != EXT_LANG_BP_STOP_NO;
}
/* ^C/SIGINT support.