This constifies breakpoint::print_recreate.
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
/* The name of the specific exception the user specified. */
std::string excep_string;
exception catchpoint kinds. */
void
-ada_catchpoint::print_recreate (struct ui_file *fp)
+ada_catchpoint::print_recreate (struct ui_file *fp) const
{
switch (m_kind)
{
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
/* Filename of a program whose exec triggered this catchpoint.
This field is only valid immediately after this catchpoint has
/* Implement the "print_recreate" method for exec catchpoints. */
void
-exec_catchpoint::print_recreate (struct ui_file *fp)
+exec_catchpoint::print_recreate (struct ui_file *fp) const
{
gdb_printf (fp, "catch exec");
print_recreate_thread (fp);
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
/* True if the breakpoint is for vfork, false for fork. */
bool is_vfork;
/* Implement the "print_recreate" method for fork catchpoints. */
void
-fork_catchpoint::print_recreate (struct ui_file *fp)
+fork_catchpoint::print_recreate (struct ui_file *fp) const
{
gdb_printf (fp, "catch %s", is_vfork ? "vfork" : "fork");
print_recreate_thread (fp);
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
/* True for "catch load", false for "catch unload". */
bool is_load;
}
void
-solib_catchpoint::print_recreate (struct ui_file *fp)
+solib_catchpoint::print_recreate (struct ui_file *fp) const
{
gdb_printf (fp, "%s %s",
disposition == disp_del ? "tcatch" : "catch",
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
bool explains_signal (enum gdb_signal) override;
/* Signal numbers used for the 'catch signal' feature. If no signal
/* Implement the "print_recreate" method for signal catchpoints. */
void
-signal_catchpoint::print_recreate (struct ui_file *fp)
+signal_catchpoint::print_recreate (struct ui_file *fp) const
{
gdb_printf (fp, "catch signal");
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
/* Syscall numbers used for the 'catch syscall' feature. If no
syscall has been specified for filtering, it is empty.
/* Implement the "print_recreate" method for syscall catchpoints. */
void
-syscall_catchpoint::print_recreate (struct ui_file *fp)
+syscall_catchpoint::print_recreate (struct ui_file *fp) const
{
struct gdbarch *gdbarch = loc->gdbarch;
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
void print_one_detail (struct ui_out *) const override;
void check_status (struct bpstat *bs) override;
struct bp_location *allocate_location () override;
catchpoints. */
void
-exception_catchpoint::print_recreate (struct ui_file *fp)
+exception_catchpoint::print_recreate (struct ui_file *fp) const
{
int bp_temp;
int resources_needed (const struct bp_location *) override;
enum print_stop_action print_it (const bpstat *bs) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
};
/* Internal breakpoints. */
const address_space *aspace,
CORE_ADDR bp_addr,
const target_waitstatus &ws) override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
void after_condition_true (struct bpstat *bs) override;
};
bool print_one (bp_location **) const override;
void print_one_detail (struct ui_out *) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
};
/* Static tracepoints with marker (`-m'). */
/* Implement the "print_recreate" method for ranged breakpoints. */
void
-ranged_breakpoint::print_recreate (struct ui_file *fp)
+ranged_breakpoint::print_recreate (struct ui_file *fp) const
{
gdb_printf (fp, "break-range %s, %s",
event_location_to_string (location.get ()),
/* Implement the "print_recreate" method for watchpoints. */
void
-watchpoint::print_recreate (struct ui_file *fp)
+watchpoint::print_recreate (struct ui_file *fp) const
{
switch (type)
{
enum print_stop_action print_it (const bpstat *bs) const override;
void print_one_detail (struct ui_out *) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
};
/* Implement the "insert" method for masked hardware watchpoints. */
watchpoints. */
void
-masked_watchpoint::print_recreate (struct ui_file *fp)
+masked_watchpoint::print_recreate (struct ui_file *fp) const
{
switch (type)
{
}
void
-breakpoint::print_recreate (struct ui_file *fp)
+breakpoint::print_recreate (struct ui_file *fp) const
{
internal_error_pure_virtual_called ();
}
}
void
-ordinary_breakpoint::print_recreate (struct ui_file *fp)
+ordinary_breakpoint::print_recreate (struct ui_file *fp) const
{
if (type == bp_breakpoint && disposition == disp_del)
gdb_printf (fp, "tbreak");
}
void
-tracepoint::print_recreate (struct ui_file *fp)
+tracepoint::print_recreate (struct ui_file *fp) const
{
if (type == bp_fast_tracepoint)
gdb_printf (fp, "ftrace");
/* Implement the "print_recreate" method for dprintf. */
void
-dprintf_breakpoint::print_recreate (struct ui_file *fp)
+dprintf_breakpoint::print_recreate (struct ui_file *fp) const
{
gdb_printf (fp, "dprintf %s,%s",
event_location_to_string (location.get ()),
virtual void print_mention () const;
/* Print to FP the CLI command that recreates this breakpoint. */
- virtual void print_recreate (struct ui_file *fp);
+ virtual void print_recreate (struct ui_file *fp) const;
/* Given the location (second parameter), this method decodes it and
returns the SAL locations related to it. For ordinary
enum print_stop_action print_it (const bpstat *bs) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
bool explains_signal (enum gdb_signal) override;
/* String form of exp to use for displaying to the user (malloc'd),
const target_waitstatus &ws) override;
void print_one_detail (struct ui_out *uiout) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
std::vector<symtab_and_line> decode_location
(struct event_location *location,
struct program_space *search_pspace) override;