From a67bcaba1c47a01826ed2769a41f84c533183ddf Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 30 Apr 2022 12:25:36 -0600 Subject: Constify breakpoint::print_one This constifies breakpoint::print_one. --- gdb/break-catch-sig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/break-catch-sig.c') diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c index 77ecb46..8ded603 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -48,7 +48,7 @@ struct signal_catchpoint : public breakpoint CORE_ADDR bp_addr, const target_waitstatus &ws) override; enum print_stop_action print_it (const bpstat *bs) const override; - bool print_one (struct bp_location **) override; + bool print_one (bp_location **) const override; void print_mention () override; void print_recreate (struct ui_file *fp) override; bool explains_signal (enum gdb_signal) override; @@ -204,7 +204,7 @@ signal_catchpoint::print_it (const bpstat *bs) const /* Implement the "print_one" method for signal catchpoints. */ bool -signal_catchpoint::print_one (struct bp_location **last_loc) +signal_catchpoint::print_one (bp_location **last_loc) const { struct value_print_options opts; struct ui_out *uiout = current_uiout; -- cgit v1.1