diff options
author | Lancelot Six <lancelot.six@amd.com> | 2023-10-13 10:54:46 +0000 |
---|---|---|
committer | Lancelot Six <lancelot.six@amd.com> | 2023-11-21 11:52:36 +0000 |
commit | 882b0505164f9474ef565cbc237df34a65061a8f (patch) | |
tree | 1e9784ba6c4f4ef6075792c62b16e464b364e7a2 /gdb/debuginfod-support.c | |
parent | 8082468ffe65095cdd640fb081b9d3d28dd7add4 (diff) | |
download | binutils-882b0505164f9474ef565cbc237df34a65061a8f.zip binutils-882b0505164f9474ef565cbc237df34a65061a8f.tar.gz binutils-882b0505164f9474ef565cbc237df34a65061a8f.tar.bz2 |
gdb: Remove uses of gdb::to_string (const std::string_view &)
This patch removes all uses of to_string(const std::string_view&) and
use the std::string ctor or implicit conversion from std::string_view to
std::string instead.
A later patch will remove this gdb::to_string while removing
gdbsupport/gdb_string_view.h.
Change-Id: I877cde557a0727be7b0435107e3c7a2aac165895
Approved-By: Tom Tromey <tom@tromey.com>
Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdb/debuginfod-support.c')
-rw-r--r-- | gdb/debuginfod-support.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c index a989eb9..eb88c40 100644 --- a/gdb/debuginfod-support.c +++ b/gdb/debuginfod-support.c @@ -20,7 +20,6 @@ #include "diagnostics.h" #include <errno.h> #include "gdbsupport/scoped_fd.h" -#include "gdbsupport/gdb_string_view.h" #include "debuginfod-support.h" #include <optional> #include "cli/cli-cmds.h" @@ -265,8 +264,7 @@ debuginfod_is_enabled () gdb_printf (_(" <%ps>\n"), styled_string (file_name_style.style (), - gdb::to_string (url_view.substr (0, - off)).c_str ())); + std::string (url_view.substr (0, off)).c_str ())); if (off == std::string_view::npos) break; url_view = url_view.substr (off); |