mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 18:41:27 +00:00
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:
@@ -201,7 +201,7 @@ signal_catchpoint_print_it (bpstat *bs)
|
||||
/* Implement the "print_one" breakpoint_ops method for signal
|
||||
catchpoints. */
|
||||
|
||||
static void
|
||||
static bool
|
||||
signal_catchpoint_print_one (struct breakpoint *b,
|
||||
struct bp_location **last_loc)
|
||||
{
|
||||
@@ -248,6 +248,8 @@ signal_catchpoint_print_one (struct breakpoint *b,
|
||||
|
||||
if (uiout->is_mi_like_p ())
|
||||
uiout->field_string ("catch-type", "signal");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Implement the "print_mention" breakpoint_ops method for signal
|
||||
|
||||
Reference in New Issue
Block a user