This constifies breakpoint::print_one.
void re_set () override;
void check_status (struct bpstat *bs) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- bool print_one (struct bp_location **) override;
+ bool print_one (bp_location **) const override;
void print_mention () override;
void print_recreate (struct ui_file *fp) override;
catchpoint kinds. */
bool
-ada_catchpoint::print_one (struct bp_location **last_loc)
+ada_catchpoint::print_one (bp_location **last_loc) const
{
struct ui_out *uiout = current_uiout;
struct value_print_options opts;
CORE_ADDR bp_addr,
const target_waitstatus &ws) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- bool print_one (struct bp_location **) override;
+ bool print_one (bp_location **) const override;
void print_mention () override;
void print_recreate (struct ui_file *fp) override;
}
bool
-exec_catchpoint::print_one (struct bp_location **last_loc)
+exec_catchpoint::print_one (bp_location **last_loc) const
{
struct value_print_options opts;
struct ui_out *uiout = current_uiout;
CORE_ADDR bp_addr,
const target_waitstatus &ws) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- bool print_one (struct bp_location **) override;
+ bool print_one (bp_location **) const override;
void print_mention () override;
void print_recreate (struct ui_file *fp) override;
/* Implement the "print_one" method for fork catchpoints. */
bool
-fork_catchpoint::print_one (struct bp_location **last_loc)
+fork_catchpoint::print_one (bp_location **last_loc) const
{
struct value_print_options opts;
struct ui_out *uiout = current_uiout;
const target_waitstatus &ws) override;
void check_status (struct bpstat *bs) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- bool print_one (struct bp_location **) override;
+ bool print_one (bp_location **) const override;
void print_mention () override;
void print_recreate (struct ui_file *fp) override;
}
bool
-solib_catchpoint::print_one (struct bp_location **locs)
+solib_catchpoint::print_one (bp_location **locs) const
{
struct value_print_options opts;
struct ui_out *uiout = current_uiout;
CORE_ADDR bp_addr,
const target_waitstatus &ws) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- bool print_one (struct bp_location **) override;
+ bool print_one (bp_location **) const override;
void print_mention () override;
void print_recreate (struct ui_file *fp) override;
bool explains_signal (enum gdb_signal) override;
/* Implement the "print_one" method for signal catchpoints. */
bool
-signal_catchpoint::print_one (struct bp_location **last_loc)
+signal_catchpoint::print_one (bp_location **last_loc) const
{
struct value_print_options opts;
struct ui_out *uiout = current_uiout;
CORE_ADDR bp_addr,
const target_waitstatus &ws) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- bool print_one (struct bp_location **) override;
+ bool print_one (bp_location **) const override;
void print_mention () override;
void print_recreate (struct ui_file *fp) override;
/* Implement the "print_one" method for syscall catchpoints. */
bool
-syscall_catchpoint::print_one (struct bp_location **last_loc)
+syscall_catchpoint::print_one (bp_location **last_loc) const
{
struct value_print_options opts;
struct ui_out *uiout = current_uiout;
{
void re_set () override;
enum print_stop_action print_it (const bpstat *bs) const override;
- bool print_one (struct bp_location **) override;
+ bool print_one (bp_location **) const override;
void print_mention () override;
void print_recreate (struct ui_file *fp) override;
void print_one_detail (struct ui_out *) const override;
}
bool
-exception_catchpoint::print_one (struct bp_location **last_loc)
+exception_catchpoint::print_one (bp_location **last_loc) const
{
struct value_print_options opts;
struct ui_out *uiout = current_uiout;
const target_waitstatus &ws) override;
int resources_needed (const struct bp_location *) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- bool print_one (struct bp_location **) override;
+ bool print_one (bp_location **) const override;
void print_one_detail (struct ui_out *) const override;
void print_mention () override;
void print_recreate (struct ui_file *fp) override;
*/
static const char *
-bp_condition_evaluator (struct breakpoint *b)
+bp_condition_evaluator (const breakpoint *b)
{
char host_evals = 0;
char target_evals = 0;
/* Print the LOC location out of the list of B->LOC locations. */
static void
-print_breakpoint_location (struct breakpoint *b,
+print_breakpoint_location (const breakpoint *b,
struct bp_location *loc)
{
struct ui_out *uiout = current_uiout;
/* Implement the "print_one" method for ranged breakpoints. */
bool
-ranged_breakpoint::print_one (struct bp_location **last_loc)
+ranged_breakpoint::print_one (bp_location **last_loc) const
{
struct bp_location *bl = loc;
struct value_print_options opts;
/* See breakpoint.h. */
-bp_location_range breakpoint::locations ()
+bp_location_range breakpoint::locations () const
{
return bp_location_range (this->loc);
}
/* 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;
}
}
/* Return a range of this breakpoint's locations. */
- bp_location_range locations ();
+ bp_location_range locations () const;
breakpoint *next = NULL;
/* Type of breakpoint. */