Make exception_catchpoint inherit base_breakpoint instead of catchpoint
authorPedro Alves <pedro@palves.net>
Sat, 7 May 2022 00:18:34 +0000 (01:18 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 20 May 2022 19:41:01 +0000 (20:41 +0100)
commit249dfeafc96db9d36ea8c22f0ae3c3eb5b76b5ba
tree6c657d47ce2d374ac25001326e96634e5bef1d19
parent7a3e3265ed47704e08ec7d3a276204eb62d35811
Make exception_catchpoint inherit base_breakpoint instead of catchpoint

exception_catchpoint is really a code breakpoint, with locations set
by sals, re-set like other code breakpoints, etc., so make it inherit
base_breakpoint.

This adds a bit of duplicated code to exception_catchpoint's ctor
(copied from struct catchpoint's ctor), but it will be eliminated in a
following patch.

Change-Id: I9fbb2927491120e9744a4f5e5cb5e6870ca07009
gdb/break-catch-throw.c