]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ranged_breakpoint: don't use init_raw_breakpoint
authorPedro Alves <pedro@palves.net>
Fri, 6 May 2022 21:21:36 +0000 (22:21 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 20 May 2022 19:41:00 +0000 (20:41 +0100)
commitf317d1eb2a7a7b9ec724630a7d70b51f435ff116
tree6b2381dbe9e77b28c75fa69bf6caaa783434a752
parent1c2cbcf1de2d3fcba119ff4ef01dc1b74923daeb
ranged_breakpoint: don't use init_raw_breakpoint

ranged_breakpoint's ctor already sets the breakpoint's type to
bp_hardware_breakpoint.

Since this is a "regular" breakpoint, b->pspace should remain NULL.

Thus, the only thing init_raw_breakpoint is needed for, is to add the
breakpoint's location.  Do that directly.

Change-Id: I1505de94c3919881c2b300437e2c0da9b05f76bd
gdb/breakpoint.c