Introduce catchpoint class

This introduces a catchpoint class that is used as the base class for
all catchpoints.  init_catchpoint is rewritten to be a constructor
instead.

This changes the hierarchy a little -- some catchpoints now inherit
from base_breakpoint whereas previously they did not.  This isn't a
problem, as long as re_set is redefined in catchpoint.
This commit is contained in:
Tom Tromey
2022-05-01 16:11:26 -06:00
parent b68f26dea7
commit fed1c982de
8 changed files with 49 additions and 49 deletions

View File

@@ -355,7 +355,6 @@ create_syscall_event_catchpoint (int tempflag, std::vector<int> &&filter)
std::unique_ptr<syscall_catchpoint> c
(new syscall_catchpoint (gdbarch, std::move (filter)));
init_catchpoint (c.get (), gdbarch, tempflag, nullptr);
install_breakpoint (0, std::move (c), 1);
}