From 7bd8631327cc222ebe0906d76e5faea4e4b291ba Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 30 Apr 2022 12:20:10 -0600 Subject: Constify breakpoint::print_it This constifies breakpoint::print_it. Doing this pointed out some code in ada-lang.c that can be simplified a little as well. --- gdb/break-catch-exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/break-catch-exec.c') diff --git a/gdb/break-catch-exec.c b/gdb/break-catch-exec.c index 2ae9ebf..89fa393 100644 --- a/gdb/break-catch-exec.c +++ b/gdb/break-catch-exec.c @@ -43,7 +43,7 @@ struct exec_catchpoint : public breakpoint const address_space *aspace, CORE_ADDR bp_addr, const target_waitstatus &ws) override; - enum print_stop_action print_it (struct bpstat *bs) override; + enum print_stop_action print_it (const bpstat *bs) const override; bool print_one (struct bp_location **) override; void print_mention () override; void print_recreate (struct ui_file *fp) override; @@ -81,7 +81,7 @@ exec_catchpoint::breakpoint_hit (const struct bp_location *bl, } enum print_stop_action -exec_catchpoint::print_it (bpstat *bs) +exec_catchpoint::print_it (const bpstat *bs) const { struct ui_out *uiout = current_uiout; -- cgit v1.1