This constifies breakpoint::print_mention.
void check_status (struct bpstat *bs) override;
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
/* The name of the specific exception the user specified. */
for all exception catchpoint kinds. */
void
-ada_catchpoint::print_mention ()
+ada_catchpoint::print_mention () const
{
struct ui_out *uiout = current_uiout;
const target_waitstatus &ws) override;
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
/* Filename of a program whose exec triggered this catchpoint.
}
void
-exec_catchpoint::print_mention ()
+exec_catchpoint::print_mention () const
{
gdb_printf (_("Catchpoint %d (exec)"), number);
}
const target_waitstatus &ws) override;
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
/* True if the breakpoint is for vfork, false for fork. */
/* Implement the "print_mention" method for fork catchpoints. */
void
-fork_catchpoint::print_mention ()
+fork_catchpoint::print_mention () const
{
gdb_printf (_("Catchpoint %d (%s)"), number,
is_vfork ? "vfork" : "fork");
void check_status (struct bpstat *bs) override;
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
/* True for "catch load", false for "catch unload". */
}
void
-solib_catchpoint::print_mention ()
+solib_catchpoint::print_mention () const
{
gdb_printf (_("Catchpoint %d (%s)"), number,
is_load ? "load" : "unload");
const target_waitstatus &ws) override;
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
bool explains_signal (enum gdb_signal) override;
/* Implement the "print_mention" method for signal catchpoints. */
void
-signal_catchpoint::print_mention ()
+signal_catchpoint::print_mention () const
{
if (!signals_to_be_caught.empty ())
{
const target_waitstatus &ws) override;
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
/* Syscall numbers used for the 'catch syscall' feature. If no
/* Implement the "print_mention" method for syscall catchpoints. */
void
-syscall_catchpoint::print_mention ()
+syscall_catchpoint::print_mention () const
{
struct gdbarch *gdbarch = loc->gdbarch;
void re_set () override;
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
void print_one_detail (struct ui_out *) const override;
void check_status (struct bpstat *bs) override;
}
void
-exception_catchpoint::print_mention ()
+exception_catchpoint::print_mention () const
{
struct ui_out *uiout = current_uiout;
int bp_temp;
static int can_use_hardware_watchpoint
(const std::vector<value_ref_ptr> &vals);
-static void mention (struct breakpoint *);
+static void mention (const breakpoint *);
static struct breakpoint *set_raw_breakpoint_without_location (struct gdbarch *,
enum bptype);
{
int resources_needed (const struct bp_location *) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
};
void re_set () override;
void check_status (struct bpstat *bs) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- void print_mention () override;
+ void print_mention () const override;
};
/* Momentary breakpoints. */
void re_set () override;
void check_status (struct bpstat *bs) override;
enum print_stop_action print_it (const bpstat *bs) const override;
- void print_mention () override;
+ void print_mention () const override;
};
/* DPrintf breakpoints. */
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
void print_one_detail (struct ui_out *) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
};
/* Tell the user we have just set a breakpoint B. */
static void
-mention (struct breakpoint *b)
+mention (const breakpoint *b)
{
b->print_mention ();
current_uiout->text ("\n");
/* Implement the "print_mention" method for ranged breakpoints. */
void
-ranged_breakpoint::print_mention ()
+ranged_breakpoint::print_mention () const
{
struct bp_location *bl = loc;
struct ui_out *uiout = current_uiout;
/* Implement the "print_mention" method for hardware watchpoints. */
void
-watchpoint::print_mention ()
+watchpoint::print_mention () const
{
struct ui_out *uiout = current_uiout;
const char *tuple_name;
bool works_in_software_mode () const override;
enum print_stop_action print_it (const bpstat *bs) const override;
void print_one_detail (struct ui_out *) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
};
watchpoints. */
void
-masked_watchpoint::print_mention ()
+masked_watchpoint::print_mention () const
{
struct ui_out *uiout = current_uiout;
const char *tuple_name;
callbacks. */
static void
-say_where (struct breakpoint *b)
+say_where (const breakpoint *b)
{
struct value_print_options opts;
}
void
-breakpoint::print_mention ()
+breakpoint::print_mention () const
{
internal_error_pure_virtual_called ();
}
}
void
-ordinary_breakpoint::print_mention ()
+ordinary_breakpoint::print_mention () const
{
if (current_uiout->is_mi_like_p ())
return;
}
void
-internal_breakpoint::print_mention ()
+internal_breakpoint::print_mention () const
{
/* Nothing to mention. These breakpoints are internal. */
}
}
void
-momentary_breakpoint::print_mention ()
+momentary_breakpoint::print_mention () const
{
/* Nothing to mention. These breakpoints are internal. */
}
}
void
-tracepoint::print_mention ()
+tracepoint::print_mention () const
{
if (current_uiout->is_mi_like_p ())
return;
/* Display information about this breakpoint after setting it
(roughly speaking; this is called from "mention"). */
- virtual void print_mention ();
+ virtual void print_mention () const;
/* Print to FP the CLI command that recreates this breakpoint. */
virtual void print_recreate (struct ui_file *fp);
virtual bool works_in_software_mode () const;
enum print_stop_action print_it (const bpstat *bs) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
bool explains_signal (enum gdb_signal) override;
const address_space *aspace, CORE_ADDR bp_addr,
const target_waitstatus &ws) override;
void print_one_detail (struct ui_out *uiout) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
std::vector<symtab_and_line> decode_location
(struct event_location *location,