diff options
author | Tom Tromey <tom@tromey.com> | 2022-04-30 08:04:30 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-05-06 12:03:34 -0600 |
commit | a6860f3ad2d0ee89ee8b4a7f257b7fdcac84b5c4 (patch) | |
tree | 6e5f083f90eab17bcc4c561a199ee2b27d77dcf2 /gdb/breakpoint.c | |
parent | 9efa3c7fa3654c91d638fc9705ecd61c465c8000 (diff) | |
download | fsf-binutils-gdb-a6860f3ad2d0ee89ee8b4a7f257b7fdcac84b5c4.zip fsf-binutils-gdb-a6860f3ad2d0ee89ee8b4a7f257b7fdcac84b5c4.tar.gz fsf-binutils-gdb-a6860f3ad2d0ee89ee8b4a7f257b7fdcac84b5c4.tar.bz2 |
Boolify breakpoint::explains_signal
This changes breakpoint::explains_signal to return bool.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 7e8fae9..2521e95 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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 |