mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +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:
@@ -253,7 +253,7 @@ print_it_exception_catchpoint (bpstat *bs)
|
||||
return PRINT_SRC_AND_LOC;
|
||||
}
|
||||
|
||||
static void
|
||||
static bool
|
||||
print_one_exception_catchpoint (struct breakpoint *b,
|
||||
struct bp_location **last_loc)
|
||||
{
|
||||
@@ -287,6 +287,8 @@ print_one_exception_catchpoint (struct breakpoint *b,
|
||||
uiout->field_string ("catch-type", "catch");
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Implement the 'print_one_detail' method. */
|
||||
|
||||
Reference in New Issue
Block a user