Return bool from breakpoint_ops::print_one

This changes breakpoint_ops::print_one to return bool, and updates all
the implementations and the caller.  The caller is changed so that a
NULL check is no longer needed -- something that will be impossible
with a real method.
This commit is contained in:
Tom Tromey 2022-01-16 16:56:24 -07:00
parent 6689579725
commit c01e038bd2
9 changed files with 45 additions and 19 deletions

View file

@ -608,8 +608,9 @@ struct breakpoint_ops
enum print_stop_action (*print_it) (struct bpstat *bs);
/* Display information about this breakpoint, for "info
breakpoints". */
void (*print_one) (struct breakpoint *, struct bp_location **);
breakpoints". Returns false if this method should use the
default behavior. */
bool (*print_one) (struct breakpoint *, struct bp_location **);
/* Display extra information about this breakpoint, below the normal
breakpoint description in "info breakpoints".