error (_("Junk at end of arguments."));
std::unique_ptr<exec_catchpoint> c (new exec_catchpoint ());
- init_catchpoint (c.get (), gdbarch, temp, cond_string,
- &vtable_breakpoint_ops);
+ init_catchpoint (c.get (), gdbarch, temp, cond_string);
c->exec_pathname.reset ();
install_breakpoint (0, std::move (c), 1);
{
std::unique_ptr<fork_catchpoint> c (new fork_catchpoint ());
- init_catchpoint (c.get (), gdbarch, temp, cond_string,
- &vtable_breakpoint_ops);
+ init_catchpoint (c.get (), gdbarch, temp, cond_string);
c->is_vfork = is_vfork;
c->forked_inferior_pid = null_ptid;
}
c->is_load = is_load;
- init_catchpoint (c.get (), gdbarch, is_temp, NULL, &vtable_breakpoint_ops);
+ init_catchpoint (c.get (), gdbarch, is_temp, NULL);
c->enable_state = enabled ? bp_enabled : bp_disabled;
struct gdbarch *gdbarch = get_current_arch ();
std::unique_ptr<signal_catchpoint> c (new signal_catchpoint ());
- init_catchpoint (c.get (), gdbarch, tempflag, NULL, &vtable_breakpoint_ops);
+ init_catchpoint (c.get (), gdbarch, tempflag, nullptr);
c->signals_to_be_caught = std::move (filter);
c->catch_all = catch_all;
struct gdbarch *gdbarch = get_current_arch ();
std::unique_ptr<syscall_catchpoint> c (new syscall_catchpoint ());
- init_catchpoint (c.get (), gdbarch, tempflag, nullptr,
- &vtable_breakpoint_ops);
+ init_catchpoint (c.get (), gdbarch, tempflag, nullptr);
c->syscalls_to_be_caught = std::move (filter);
install_breakpoint (0, std::move (c), 1);
std::unique_ptr<exception_catchpoint> cp (new exception_catchpoint ());
- init_catchpoint (cp.get (), get_current_arch (), tempflag, cond_string,
- &vtable_breakpoint_ops);
+ init_catchpoint (cp.get (), get_current_arch (), tempflag, cond_string);
cp->kind = ex_event;
cp->exception_rx = std::move (except_rx);
cp->pattern = std::move (pattern);
void
init_catchpoint (struct breakpoint *b,
struct gdbarch *gdbarch, bool temp,
- const char *cond_string,
- const struct breakpoint_ops *ops)
+ const char *cond_string)
{
symtab_and_line sal;
sal.pspace = current_program_space;
- init_raw_breakpoint (b, gdbarch, sal, bp_catchpoint, ops);
+ init_raw_breakpoint (b, gdbarch, sal, bp_catchpoint,
+ &vtable_breakpoint_ops);
if (cond_string == nullptr)
b->cond_string.reset ();
/* Initialize a new breakpoint of the bp_catchpoint kind. If TEMP
is true, then make the breakpoint temporary. If COND_STRING is
- not NULL, then store it in the breakpoint. OPS, if not NULL, is
- the breakpoint_ops structure associated to the catchpoint. */
+ not NULL, then store it in the breakpoint. */
extern void init_catchpoint (struct breakpoint *b,
struct gdbarch *gdbarch, bool temp,
- const char *cond_string,
- const struct breakpoint_ops *ops);
+ const char *cond_string);
/* Add breakpoint B on the breakpoint list, and notify the user, the
target and breakpoint_created observers of its existence. If