From 5e632eca05f38ea7229f103e0636e02c6dfcd9fa Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 8 May 2023 16:40:40 -0400 Subject: 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 --- gdb/breakpoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/breakpoint.h') 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; } -- cgit v1.1