gdb: make install_breakpoint return a non-owning reference
authorPedro Alves <pedro@palves.net>
Fri, 23 Sep 2022 15:48:11 +0000 (11:48 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 2 Feb 2023 15:02:33 +0000 (10:02 -0500)
commitb82d4ec99e3347b62a16cf5456628a37a128a99b
treeeee5895086a1b48dcc3007660f8f600b7a7ac610
parent1a8505cb53faa1c191d09ba221f9b0ec383ccfde
gdb: make install_breakpoint return a non-owning reference

A following patch will want to install a breakpoint and then keep a
non-owning reference to it.  Make install_breakpoint return a non-owning
reference, to make that easy.

Co-Authored-By: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I2e8106a784021ff276ce251e24708cbdccc2d479
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/breakpoint.c
gdb/breakpoint.h