gdb: constify breakpoint::print_it parameter
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 8 May 2023 20:40:40 +0000 (16:40 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 25 May 2023 12:46:23 +0000 (08:46 -0400)
commit5e632eca05f38ea7229f103e0636e02c6dfcd9fa
tree0fd2d9fd0c8b10cd3bb87e15e25a22b16e316108
parentdbaa3bf64062798c3e3009ab18af432dc5e7f4f5
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>
gdb/ada-lang.c
gdb/break-catch-exec.c
gdb/break-catch-fork.c
gdb/break-catch-load.c
gdb/break-catch-sig.c
gdb/break-catch-syscall.c
gdb/break-catch-throw.c
gdb/breakpoint.c
gdb/breakpoint.h