gdb_printf (fp, "break-range %s, %s",
event_location_to_string (location.get ()),
event_location_to_string (location_range_end.get ()));
- print_recreate_thread (this, fp);
+ print_recreate_thread (fp);
}
/* Find the address where the end of the breakpoint range should be
}
gdb_printf (fp, " %s", exp_string.get ());
- print_recreate_thread (this, fp);
+ print_recreate_thread (fp);
}
/* Implement the "explains_signal" method for watchpoints. */
gdb_printf (fp, " %s mask 0x%s", exp_string.get (),
phex (hw_wp_mask, sizeof (CORE_ADDR)));
- print_recreate_thread (this, fp);
+ print_recreate_thread (fp);
}
/* Tell whether the given watchpoint is a masked hardware watchpoint. */
if (loc == NULL && extra_string != NULL)
gdb_printf (fp, " %s", extra_string.get ());
- print_recreate_thread (this, fp);
+ print_recreate_thread (fp);
}
std::vector<symtab_and_line>
_("unhandled tracepoint type %d"), (int) type);
gdb_printf (fp, " %s", event_location_to_string (location.get ()));
- print_recreate_thread (this, fp);
+ print_recreate_thread (fp);
if (pass_count)
gdb_printf (fp, " passcount %d\n", pass_count);
gdb_printf (fp, "dprintf %s,%s",
event_location_to_string (location.get ()),
extra_string.get ());
- print_recreate_thread (this, fp);
+ print_recreate_thread (fp);
}
/* Implement the "after_condition_true" method for dprintf.
}
void
-print_recreate_thread (struct breakpoint *b, struct ui_file *fp)
+breakpoint::print_recreate_thread (struct ui_file *fp) const
{
- if (b->thread != -1)
- gdb_printf (fp, " thread %d", b->thread);
+ if (thread != -1)
+ gdb_printf (fp, " thread %d", thread);
- if (b->task != 0)
- gdb_printf (fp, " task %d", b->task);
+ if (task != 0)
+ gdb_printf (fp, " task %d", task);
gdb_printf (fp, "\n");
}
int, int, int, unsigned);
};
-/* Helper for breakpoint_ops->print_recreate implementations. Prints
- the "thread" or "task" condition of B, and then a newline.
-
- Necessary because most breakpoint implementations accept
- thread/task conditions at the end of the spec line, like "break foo
- thread 1", which needs outputting before any breakpoint-type
- specific extra command necessary for B's recreation. */
-extern void print_recreate_thread (struct breakpoint *b, struct ui_file *fp);
-
enum watchpoint_triggered
{
/* This watchpoint definitely did not trigger. */
/* Nothing to do. */
}
-
/* Return a range of this breakpoint's locations. */
bp_location_range locations ();
/* Same as py_bp_object, but for Scheme. */
gdbscm_breakpoint_object *scm_bp_object = NULL;
+
+protected:
+
+ /* Helper for breakpoint_ops->print_recreate implementations. Prints
+ the "thread" or "task" condition of B, and then a newline.
+
+ Necessary because most breakpoint implementations accept
+ thread/task conditions at the end of the spec line, like "break foo
+ thread 1", which needs outputting before any breakpoint-type
+ specific extra command necessary for B's recreation. */
+ void print_recreate_thread (struct ui_file *fp) const;
};
/* The structure to be inherit by all kinds of breakpoints (real