Refactor momentary breakpoints, eliminate set_raw_breakpoint{,_without_location}
authorPedro Alves <pedro@palves.net>
Fri, 6 May 2022 23:34:33 +0000 (00:34 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 20 May 2022 19:41:01 +0000 (20:41 +0100)
commit7a3e3265ed47704e08ec7d3a276204eb62d35811
tree9a2ab316db24ebdac534e9c97c3fdda1b8de4f02
parent752a2291b120ef2923615123f8a5ada334745f08
Refactor momentary breakpoints, eliminate set_raw_breakpoint{,_without_location}

This commit makes set_momentary_breakpoint allocate the breakpoint
type without relying on set_raw_breakpoint, and similarly,
momentary_breakpoint_from_master not rely on
set_raw_breakpoint_without_location.  This will let us convert
init_raw_breakpoint to a ctor in a following patch.

The comment about set_raw_breakpoint being used in gdbtk sources is
stale.  gdbtk no longer uses it.

Change-Id: Ibbf77731e4b22e18ccebc1b5799bbec0aff28c8a
gdb/breakpoint.c