summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-16 16:56:24 -0700
committerTom Tromey <tom@tromey.com>2022-04-29 16:14:30 -0600
commitc01e038bd26d36e56ab290ddf1458d4236b2e4c3 (patch)
tree0be79443651b907556e6bd32bcca16048c17fb48 /gdb/break-catch-sig.c
parentDelete some unnecessary wrapper functions (diff)
downloadbinutils-gdb-c01e038bd26d36e56ab290ddf1458d4236b2e4c3.tar.gz
binutils-gdb-c01e038bd26d36e56ab290ddf1458d4236b2e4c3.tar.bz2
binutils-gdb-c01e038bd26d36e56ab290ddf1458d4236b2e4c3.zip
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-sig.c')
-rw-r--r--gdb/break-catch-sig.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c
index b739ca7dd43..06e521d9bf3 100644
--- a/gdb/break-catch-sig.c
+++ b/gdb/break-catch-sig.c
@@ -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