Convert init_ada_exception_catchpoint to a ctor
authorPedro Alves <pedro@palves.net>
Fri, 6 May 2022 23:23:08 +0000 (00:23 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 20 May 2022 19:41:01 +0000 (20:41 +0100)
commitbd21b6c9cf3e4a3fc78158ef288787dc572ce244
treeac8f632f9a04447625ee49f10f493be8e7de0944
parent8cd0bf5e7ef0a837969e39341a6d597f0eca3809
Convert init_ada_exception_catchpoint to a ctor

Currently, init_ada_exception_catchpoint is defined in breakpoint.c, I
presume so it can call the static describe_other_breakpoints function.
I think this is a dependency inversion.
init_ada_exception_catchpoint, being code specific to Ada catchpoints,
should be in ada-lang.c, and describe_other_breakpoints, a core
function, should be exported.

And then, we can convert init_ada_exception_catchpoint to an
ada_catchpoint ctor.

Change-Id: I07695572dabc5a75d3d3740fd9b95db1529406a1
gdb/ada-lang.c
gdb/breakpoint.c
gdb/breakpoint.h