Convert location_spec_to_string to a method
authorPedro Alves <pedro@palves.net>
Fri, 27 May 2022 15:44:02 +0000 (16:44 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 17 Jun 2022 08:58:49 +0000 (09:58 +0100)
commit709438c75abc52cdc4888e7eaa089c2709c75a07
tree4b114d8c51d0cbc47c4e3a8a52e9aecc848171ce
parent7464aeaab47ca3fb7127223fe372489c9c7ed69e
Convert location_spec_to_string to a method

This converts location_spec_to_string to a method of location_spec,
simplifying the code using it, as it no longer has to use
std::unique_ptr::get().

Change-Id: I621bdad8ea084470a2724163f614578caf8f2dd5
gdb/breakpoint.c
gdb/elfread.c
gdb/guile/scm-breakpoint.c
gdb/linespec.c
gdb/location.c
gdb/location.h
gdb/python/py-breakpoint.c
gdb/remote.c