Momentary breakpoints should have no breakpoint number
authorPedro Alves <pedro@palves.net>
Thu, 12 May 2022 20:04:42 +0000 (21:04 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 20 May 2022 19:41:02 +0000 (20:41 +0100)
commitf9703051465a03bace3cc17b80fcd12c19a60821
tree4f68f717190c2a90efe7e4a2add00a9761c2ce62
parent9a71ed14cb3c28238a12f19847a9f4f22ca20fd2
Momentary breakpoints should have no breakpoint number

Momentary breakpoints have no breakpoint number, their breakpoint
number should be always 0, to avoid constantly incrementing (or
decrementing) the internal breakpoint count.

Indeed, set_momentary_breakpoint installs the created breakpoint
without a number.

However, momentary_breakpoint_from_master incorrectly gives an
internal breakpoint number to the new breakpoint.  This commit fixes
that.

Change-Id: Iedcae5432cdf232db9e9a6e1a646d358abd34f95
gdb/breakpoint.c