binutils-gdb/gdb/cli
Lancelot Six 8082468ffe gdb: Use std::string_view instead of gdb::string_view
Given that GDB now requires a C++17, replace all uses of
gdb::string_view with std::string_view.

This change has mostly been done automatically:
- gdb::string_view -> std::string_view
- #include "gdbsupport/gdb_string_view.h" -> #include <string_view>

One things which got brought up during review is that gdb::stging_view
does support being built from "nullptr" while std::sting_view does not.
Two places are manually adjusted to account for this difference:
gdb/tui/tui-io.c:tui_getc_1 and
gdbsupport/format.h:format_piece::format_piece.

The above automatic change transformed
"gdb::to_string (const gdb::string_view &)" into
"gdb::to_string (const std::string_view &)".  The various direct users
of this function are now explicitly including
"gdbsupport/gdb_string_view.h".  A later patch will remove the users of
gdb::to_string.

The implementation and tests of gdb::string_view are unchanged, they will
be removed in a following patch.

Change-Id: Ibb806a7e9c79eb16a55c87c6e41ad396fecf0207
Approved-By: Tom Tromey <tom@tromey.com>
Approved-By: Pedro Alves <pedro@palves.net>
2023-11-21 11:52:36 +00:00
..
cli-cmds.c gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
cli-cmds.h gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
cli-decode.c gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
cli-decode.h gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
cli-dump.c gdb: remove target_gdbarch 2023-10-10 10:44:35 -04:00
cli-interp.c Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
cli-interp.h gdb: add interp::on_user_selected_context_changed method 2023-05-30 15:07:26 -04:00
cli-logging.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-option.c gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
cli-option.h gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
cli-script.c gdb: Use std::string_view instead of gdb::string_view 2023-11-21 11:52:36 +00:00
cli-script.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-setshow.c Use std::string in do_set_command 2023-06-20 07:52:28 -06:00
cli-setshow.h GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
cli-style.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-style.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-utils.c Turn value_type into method 2023-02-13 15:21:06 -07:00
cli-utils.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00