init_breakpoint_sal -> base_breakpoint::base_breakpoint
authorPedro Alves <pedro@palves.net>
Fri, 6 May 2022 22:18:57 +0000 (23:18 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 20 May 2022 19:41:00 +0000 (20:41 +0100)
commit3b003a6126610d16015c5aee997ed702788d3be6
tree9fb033b3bb2e715ff1f13024e70c7fabae757f14
parentd837fd813d9c72ea7d06ef839b95857dcf0da811
init_breakpoint_sal -> base_breakpoint::base_breakpoint

This converts init_breakpoint_sal to a base_breakpoint constructor.

It removes a use of init_raw_breakpoint.

To avoid manually adding a bunch of parameters to
new_breakpoint_from_type, and manually passing them down to the
constructors of a number of different base_breakpoint subclasses, make
new_breakpoint_from_type a variable template function.

Change-Id: I4cc24133ac4c292f547289ec782fc78e5bbe2510
gdb/breakpoint.c
gdb/breakpoint.h