aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-05-27 16:44:02 +0100
committerPedro Alves <pedro@palves.net>2022-06-17 09:58:49 +0100
commit709438c75abc52cdc4888e7eaa089c2709c75a07 (patch)
tree4b114d8c51d0cbc47c4e3a8a52e9aecc848171ce /gdb/remote.c
parent7464aeaab47ca3fb7127223fe372489c9c7ed69e (diff)
downloadgdb-709438c75abc52cdc4888e7eaa089c2709c75a07.zip
gdb-709438c75abc52cdc4888e7eaa089c2709c75a07.tar.gz
gdb-709438c75abc52cdc4888e7eaa089c2709c75a07.tar.bz2
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
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 7bcd6e3..ed83422 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -13375,7 +13375,7 @@ remote_target::download_tracepoint (struct bp_location *loc)
if (ret < 0 || ret >= buf.size ())
error ("%s", err_msg);
- const char *str = location_spec_to_string (b->locspec.get ());
+ const char *str = b->locspec->to_string ();
encode_source_string (b->number, loc->address, "at", str,
buf.data () + strlen (buf.data ()),
buf.size () - strlen (buf.data ()));