binutils-gdb/gdb/tui
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
..
ChangeLog-1998-2003
tui-command.c
tui-command.h [gdb/tui] Factor out tui_noscroll_window et al 2023-11-14 15:45:18 +01:00
tui-data.c gdb/tui: make tui_win_info::title private 2023-07-15 11:40:45 +01:00
tui-data.h [gdb/tui] Factor out tui_noscroll_window et al 2023-11-14 15:45:18 +01:00
tui-disasm.c gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
tui-disasm.h
tui-file.c
tui-file.h
tui-hooks.c gdb: add all_objfiles_removed observer 2023-10-05 13:20:50 -04:00
tui-hooks.h
tui-interp.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
tui-io.c gdb: Use std::string_view instead of gdb::string_view 2023-11-21 11:52:36 +00:00
tui-io.h
tui-layout.c gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
tui-layout.h [gdb/tui] Fix fingerprint for cmd-only layout 2023-05-31 07:39:31 +02:00
tui-location.c
tui-location.h Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
tui-out.c
tui-out.h
tui-regs.c [gdb/tui] Add tui_win_info::{box_width,box_size} 2023-11-13 21:22:50 +01:00
tui-regs.h
tui-source.c [gdb/tui] Add tui_win_info::{box_width,box_size} 2023-11-13 21:22:50 +01:00
tui-source.h
tui-stack.c [gdb/tui] Fix length of status line string 2023-04-26 18:15:56 +02:00
tui-stack.h [gdb/tui] Factor out tui_noscroll_window et al 2023-11-14 15:45:18 +01:00
tui-win.c gdb: Use std::string_view instead of gdb::string_view 2023-11-21 11:52:36 +00:00
tui-win.h gdb/tui: add 'set tui mouse-events off' to restore mouse selection 2023-09-20 16:35:36 +01:00
tui-wingeneral.c [gdb/tui] Add tui_win_info::{box_width,box_size} 2023-11-13 21:22:50 +01:00
tui-wingeneral.h
tui-winsource.c [gdb/tui] Don't include border_width in left_margin 2023-11-13 21:22:50 +01:00
tui-winsource.h [gdb/tui] Don't include border_width in left_margin 2023-11-13 21:22:50 +01:00
tui.c [gdb/tui] Fix superfluous newline for long prompt 2023-07-21 08:17:51 +02:00
tui.h