Introduce catchpoint class
authorTom Tromey <tom@tromey.com>
Sun, 1 May 2022 22:11:26 +0000 (16:11 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 6 May 2022 18:03:35 +0000 (12:03 -0600)
commitfed1c982dec3baba167b3fd4df3538f09fa3d339
tree40077feab51633a68a1cf53066f83ff7f3991b90
parentb68f26dea78f1a390084a0e2bfa95f1bcf1942dc
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.
gdb/break-catch-exec.c
gdb/break-catch-fork.c
gdb/break-catch-load.c
gdb/break-catch-sig.c
gdb/break-catch-syscall.c
gdb/break-catch-throw.c
gdb/breakpoint.c
gdb/breakpoint.h