aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-load.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-05-08 16:40:40 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-05-25 08:46:23 -0400
commit5e632eca05f38ea7229f103e0636e02c6dfcd9fa (patch)
tree0fd2d9fd0c8b10cd3bb87e15e25a22b16e316108 /gdb/break-catch-load.c
parentdbaa3bf64062798c3e3009ab18af432dc5e7f4f5 (diff)
downloadbinutils-5e632eca05f38ea7229f103e0636e02c6dfcd9fa.zip
binutils-5e632eca05f38ea7229f103e0636e02c6dfcd9fa.tar.gz
binutils-5e632eca05f38ea7229f103e0636e02c6dfcd9fa.tar.bz2
gdb: constify breakpoint::print_it parameter
The print_it method itself is const. In a subsequent patch, the locations that come out of a const breakpoint will be const as well. It will therefore be needed to make the last_loc output parameter const as well. Make that change now to reduce the size of the following patches. Change-Id: I7ed962950bc9582646e31e2e42beca2a1c9c5105 Reviewed-By: Andrew Burgess <aburgess@redhat.com>
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 e01f645..d33313a 100644
--- a/gdb/break-catch-load.c
+++ b/gdb/break-catch-load.c
@@ -56,7 +56,7 @@ struct solib_catchpoint : public catchpoint
const target_waitstatus &ws) override;
void check_status (struct bpstat *bs) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- bool print_one (bp_location **) const override;
+ bool print_one (const bp_location **) const override;
void print_mention () const override;
void print_recreate (struct ui_file *fp) const override;
@@ -158,7 +158,7 @@ solib_catchpoint::print_it (const bpstat *bs) const
}
bool
-solib_catchpoint::print_one (bp_location **locs) const
+solib_catchpoint::print_one (const bp_location **locs) const
{
struct value_print_options opts;
struct ui_out *uiout = current_uiout;