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:
parent
6689579725
commit
c01e038bd2
9 changed files with 45 additions and 19 deletions
|
@ -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".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue