Make ada_catchpoint_location's owner ctor parameter be ada_catchpoint
authorPedro Alves <pedro@palves.net>
Fri, 6 May 2022 23:16:52 +0000 (00:16 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 20 May 2022 19:41:00 +0000 (20:41 +0100)
commit8cd0bf5e7ef0a837969e39341a6d597f0eca3809
treea34dbfa748b851d63f7d55c667b6b27cddd44bb4
parent3b003a6126610d16015c5aee997ed702788d3be6
Make ada_catchpoint_location's owner ctor parameter be ada_catchpoint

This commit changes ada_catchpoint_location's ctor from:

  ada_catchpoint_location (breakpoint *owner)

to:

  ada_catchpoint_location (ada_catchpoint *owner)

just to make the code better document intention.

To do this, we need to move the ada_catchpoint_location type's
definition to after ada_catchpoint is defined, otherwise the compiler
doesn't know that ada_catchpoint is convertible to struct breakpoint.

Change-Id: Id908b2e38bde30b262381e00c5637adb9bf0129d
gdb/ada-lang.c