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.h | |
parent | 9efa3c7fa3654c91d638fc9705ecd61c465c8000 (diff) | |
download | gdb-a6860f3ad2d0ee89ee8b4a7f257b7fdcac84b5c4.zip gdb-a6860f3ad2d0ee89ee8b4a7f257b7fdcac84b5c4.tar.gz gdb-a6860f3ad2d0ee89ee8b4a7f257b7fdcac84b5c4.tar.bz2 |
Boolify breakpoint::explains_signal
This changes breakpoint::explains_signal to return bool.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index b0ca4e9..ec3a830 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -721,9 +721,9 @@ struct breakpoint /* Return true if this breakpoint explains a signal. See bpstat_explains_signal. */ - virtual int explains_signal (enum gdb_signal) + virtual bool explains_signal (enum gdb_signal) { - return 1; + return true; } /* Called after evaluating the breakpoint's condition, @@ -882,7 +882,7 @@ struct watchpoint : public breakpoint enum print_stop_action print_it (struct bpstat *bs) override; void print_mention () override; void print_recreate (struct ui_file *fp) override; - int explains_signal (enum gdb_signal) override; + bool explains_signal (enum gdb_signal) override; /* String form of exp to use for displaying to the user (malloc'd), or NULL if none. */ |