diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-16 16:56:24 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-04-29 16:14:30 -0600 |
commit | c01e038bd26d36e56ab290ddf1458d4236b2e4c3 (patch) | |
tree | 0be79443651b907556e6bd32bcca16048c17fb48 /gdb/break-catch-throw.c | |
parent | 6689579725c370e4284f035ea283f2e459653738 (diff) | |
download | fsf-binutils-gdb-c01e038bd26d36e56ab290ddf1458d4236b2e4c3.zip fsf-binutils-gdb-c01e038bd26d36e56ab290ddf1458d4236b2e4c3.tar.gz fsf-binutils-gdb-c01e038bd26d36e56ab290ddf1458d4236b2e4c3.tar.bz2 |
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.
Diffstat (limited to 'gdb/break-catch-throw.c')
-rw-r--r-- | gdb/break-catch-throw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c index d98baf4..cec2924 100644 --- a/gdb/break-catch-throw.c +++ b/gdb/break-catch-throw.c @@ -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. */ |