diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-05-08 16:40:40 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-25 08:46:23 -0400 |
commit | 5e632eca05f38ea7229f103e0636e02c6dfcd9fa (patch) | |
tree | 0fd2d9fd0c8b10cd3bb87e15e25a22b16e316108 /gdb/break-catch-sig.c | |
parent | dbaa3bf64062798c3e3009ab18af432dc5e7f4f5 (diff) | |
download | fsf-binutils-gdb-5e632eca05f38ea7229f103e0636e02c6dfcd9fa.zip fsf-binutils-gdb-5e632eca05f38ea7229f103e0636e02c6dfcd9fa.tar.gz fsf-binutils-gdb-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-sig.c')
-rw-r--r-- | gdb/break-catch-sig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c index 8c1fcbd..10c8b81 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -57,7 +57,7 @@ struct signal_catchpoint : public catchpoint CORE_ADDR bp_addr, const target_waitstatus &ws) 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; bool explains_signal (enum gdb_signal) override; @@ -213,7 +213,7 @@ signal_catchpoint::print_it (const bpstat *bs) const /* Implement the "print_one" method for signal catchpoints. */ bool -signal_catchpoint::print_one (bp_location **last_loc) const +signal_catchpoint::print_one (const bp_location **last_loc) const { struct value_print_options opts; struct ui_out *uiout = current_uiout; |