From 4d1ae558932c17415bbe5b0dbec0a7539a19b6d5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 30 Apr 2022 12:36:08 -0600 Subject: Constify breakpoint::print_recreate This constifies breakpoint::print_recreate. --- 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 6665c9e..c42b0fd 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -50,7 +50,7 @@ struct signal_catchpoint : public breakpoint enum print_stop_action print_it (const bpstat *bs) const override; bool print_one (bp_location **) const override; void print_mention () const override; - void print_recreate (struct ui_file *fp) override; + void print_recreate (struct ui_file *fp) const override; bool explains_signal (enum gdb_signal) override; /* Signal numbers used for the 'catch signal' feature. If no signal @@ -281,7 +281,7 @@ signal_catchpoint::print_mention () const /* Implement the "print_recreate" method for signal catchpoints. */ void -signal_catchpoint::print_recreate (struct ui_file *fp) +signal_catchpoint::print_recreate (struct ui_file *fp) const { gdb_printf (fp, "catch signal"); -- cgit v1.1