aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-load.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-30 12:20:10 -0600
committerTom Tromey <tom@tromey.com>2022-05-06 12:03:34 -0600
commit7bd8631327cc222ebe0906d76e5faea4e4b291ba (patch)
treebfb6b2e5902081784f1cc1d343fb17ee4d04b74b /gdb/break-catch-load.c
parent5a61e176877b17a0fdca25a298d296800353af10 (diff)
downloadbinutils-7bd8631327cc222ebe0906d76e5faea4e4b291ba.zip
binutils-7bd8631327cc222ebe0906d76e5faea4e4b291ba.tar.gz
binutils-7bd8631327cc222ebe0906d76e5faea4e4b291ba.tar.bz2
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.
Diffstat (limited to 'gdb/break-catch-load.c')
-rw-r--r--gdb/break-catch-load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/break-catch-load.c b/gdb/break-catch-load.c
index 7c92739..d0ef182 100644
--- a/gdb/break-catch-load.c
+++ b/gdb/break-catch-load.c
@@ -43,7 +43,7 @@ struct solib_catchpoint : public breakpoint
CORE_ADDR bp_addr,
const target_waitstatus &ws) override;
void check_status (struct bpstat *bs) 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;
@@ -127,7 +127,7 @@ solib_catchpoint::check_status (struct bpstat *bs)
}
enum print_stop_action
-solib_catchpoint::print_it (bpstat *bs)
+solib_catchpoint::print_it (const bpstat *bs) const
{
struct breakpoint *b = bs->breakpoint_at;
struct ui_out *uiout = current_uiout;