aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-30 12:25:36 -0600
committerTom Tromey <tom@tromey.com>2022-05-06 12:03:34 -0600
commita67bcaba1c47a01826ed2769a41f84c533183ddf (patch)
tree31dbfdeb60f579357fe6de02ab0c2b206ee0bdb0 /gdb/breakpoint.h
parent7bd8631327cc222ebe0906d76e5faea4e4b291ba (diff)
downloadgdb-a67bcaba1c47a01826ed2769a41f84c533183ddf.zip
gdb-a67bcaba1c47a01826ed2769a41f84c533183ddf.tar.gz
gdb-a67bcaba1c47a01826ed2769a41f84c533183ddf.tar.bz2
Constify breakpoint::print_one
This constifies breakpoint::print_one.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 194452a..1b399d4 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -675,7 +675,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 (struct bp_location **)
+ virtual bool print_one (bp_location **) const
{
return false;
}
@@ -729,7 +729,7 @@ struct breakpoint
}
/* Return a range of this breakpoint's locations. */
- bp_location_range locations ();
+ bp_location_range locations () const;
breakpoint *next = NULL;
/* Type of breakpoint. */