aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
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/breakpoint.h
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/breakpoint.h')
-rw-r--r--gdb/breakpoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 7c5cf3f..80cb91b 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -684,7 +684,7 @@ struct breakpoint
/* Display information about this breakpoint, for "info
breakpoints". Returns false if this method should use the
default behavior. */
- virtual bool print_one (bp_location **) const
+ virtual bool print_one (const bp_location **) const
{
return false;
}