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-exec.c | |
parent | dbaa3bf64062798c3e3009ab18af432dc5e7f4f5 (diff) | |
download | gdb-5e632eca05f38ea7229f103e0636e02c6dfcd9fa.zip gdb-5e632eca05f38ea7229f103e0636e02c6dfcd9fa.tar.gz 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-exec.c')
-rw-r--r-- | gdb/break-catch-exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/break-catch-exec.c b/gdb/break-catch-exec.c index 6cd4985..2e4ce59 100644 --- a/gdb/break-catch-exec.c +++ b/gdb/break-catch-exec.c @@ -49,7 +49,7 @@ struct exec_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; @@ -110,7 +110,7 @@ exec_catchpoint::print_it (const bpstat *bs) const } bool -exec_catchpoint::print_one (bp_location **last_loc) const +exec_catchpoint::print_one (const bp_location **last_loc) const { struct value_print_options opts; struct ui_out *uiout = current_uiout; |