Boolify breakpoint::explains_signal

This changes breakpoint::explains_signal to return bool.
This commit is contained in:
Tom Tromey
2022-04-30 08:04:30 -06:00
parent 9efa3c7fa3
commit a6860f3ad2
3 changed files with 9 additions and 9 deletions

View File

@@ -9716,15 +9716,15 @@ watchpoint::print_recreate (struct ui_file *fp)
/* Implement the "explains_signal" method for watchpoints. */
int
bool
watchpoint::explains_signal (enum gdb_signal sig)
{
/* A software watchpoint cannot cause a signal other than
GDB_SIGNAL_TRAP. */
if (type == bp_watchpoint && sig != GDB_SIGNAL_TRAP)
return 0;
return false;
return 1;
return true;
}
struct masked_watchpoint : public watchpoint