Eliminate copy_location_spec
authorPedro Alves <pedro@palves.net>
Fri, 27 May 2022 15:25:01 +0000 (16:25 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 17 Jun 2022 08:58:49 +0000 (09:58 +0100)
commit5c1ddcb69a01c3d4985ecffbbab126a4e8cd4e33
treeec84d1ff71f69470b6f439f7e1f1a442599e0080
parent40d97ee21fc3e39db73ee8f84b847a22f9d251cc
Eliminate copy_location_spec

copy_location_spec is just a wrapper around location_spec::clone(), so
remove it and call clone() directly.  This simplifies users, as they
no longer have to use std::unique_ptr::get().

Change-Id: I8ce8658589460b98888283b306b315a5b8f73976
gdb/breakpoint.c
gdb/linespec.c
gdb/location.c
gdb/location.h