binutils-gdb/gdbsupport
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
..
.dir-locals.el
.gitattributes
acinclude.m4
aclocal.m4 Finalized intl-update patches 2023-11-15 12:53:04 +00:00
agent.cc
agent.h
alt-stack.h
array-view.h gdbsupport: mark array_view::slice with [[nodiscard]] 2023-11-03 14:27:26 -04:00
ax.def
block-signals.h
break-common.h
btrace-common.cc
btrace-common.h gdb: c++ify btrace_target_info 2023-09-11 06:15:52 +00:00
buildargv.h
byte-vector.h
ChangeLog-2020-2021
check-defines.el
cleanups.cc
cleanups.h
common-debug.cc
common-debug.h gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
common-defs.h Remove EXTERN_C and related defines 2023-11-06 20:31:12 -07:00
common-exceptions.cc [gdb] Fix typos 2023-06-03 22:43:57 +02:00
common-exceptions.h [gdb/build, c++20] Fix Wdeprecated-enum-enum-conversion 2023-08-17 10:41:34 +02:00
common-gdbthread.h
common-inferior.cc
common-inferior.h
common-regcache.cc
common-regcache.h
common-types.h Move unrelocated_addr to common-types.h 2023-06-05 09:59:18 -06:00
common-utils.cc
common-utils.h gdb: Use std::string_view instead of gdb::string_view 2023-11-21 11:52:36 +00:00
common.m4 Move -lsocket check to common.m4 2023-10-12 18:23:13 -06:00
compiler-type.m4
config.in Finalized intl-update patches 2023-11-15 12:53:04 +00:00
configure Finalized intl-update patches 2023-11-15 12:53:04 +00:00
configure.ac gdb/gdbsupport/gdbserver: Require c++17 2023-10-28 19:25:34 +00:00
create-version.sh
def-vector.h
default-init-alloc.h [gdb/build, c++20] Handle deprecated std::allocator::construct 2023-08-17 10:41:34 +02:00
eintr.h
enum-flags.h [gdb] Fix typos 2023-06-03 22:43:57 +02:00
environ.cc
environ.h
errors.cc
errors.h
event-loop.cc gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
event-loop.h
event-pipe.cc
event-pipe.h
fileio.cc
fileio.h
filestuff.cc gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
filestuff.h gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
filtered-iterator.h gdbsupport: make filtered_iterator::operator* return the same thing as underlying iterator 2023-05-25 09:48:37 -04:00
format.cc gdb: add support for %V to printf command 2023-05-30 21:49:21 +01:00
format.h gdb: Use std::string_view instead of gdb::string_view 2023-11-21 11:52:36 +00:00
forward-scope-exit.h gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
function-view.h
gdb_assert.h
gdb_binary_search.h
gdb_file.h
gdb_locale.h
gdb_obstack.cc
gdb_obstack.h
gdb_proc_service.h Remove EXTERN_C and related defines 2023-11-06 20:31:12 -07:00
gdb_ref_ptr.h
gdb_regex.cc
gdb_regex.h
gdb_select.h
gdb_setjmp.h
gdb_signals.h [gdb] Fix typos 2023-06-03 22:43:57 +02:00
gdb_splay_tree.h
gdb_string_view.h gdb: Use std::string_view instead of gdb::string_view 2023-11-21 11:52:36 +00:00
gdb_string_view.tcc
gdb_sys_time.h
gdb_tilde_expand.cc
gdb_tilde_expand.h
gdb_unique_ptr.h gdb: Use C++17's std::make_unique instead of gdb::make_unique 2023-11-21 11:52:35 +00:00
gdb_unlinker.h
gdb_vecs.cc
gdb_vecs.h
gdb_wait.cc
gdb_wait.h Remove explanatory comments from includes 2023-09-20 11:45:16 -06:00
gdb-checked-static-cast.h gdbsupport: add support for references to checked_static_cast 2023-05-24 14:53:53 -04:00
gdb-dlfcn.cc
gdb-dlfcn.h
gdb-hashtab.cc
gdb-hashtab.h
gdb-safe-ctype.h
gdb-sigmask.h
gdb-xfree.h
hash_enum.h
host-defs.h
intrusive_list.h gdbsupport: use "reference" and "pointer" type aliases in intrusive_list 2023-10-19 10:57:51 -04:00
invoke-result.h
iterator-range.h
job-control.cc
job-control.h
Makefile.am Finalized intl-update patches 2023-11-15 12:53:04 +00:00
Makefile.in Finalized intl-update patches 2023-11-15 12:53:04 +00:00
netstuff.cc
netstuff.h
new-op.cc
next-iterator.h
observable.h
offset-type.h
packed.h [gdb] Fix typos 2023-06-03 22:43:57 +02:00
parallel-for.h
pathstuff.cc [gdb] Fix typos 2023-06-03 22:43:57 +02:00
pathstuff.h
poison.h [gdb/build, c++20] Stop using deprecated is_pod 2023-08-17 10:41:34 +02:00
preprocessor.h
print-utils.cc
print-utils.h
ptid.cc
ptid.h Fix build failure with GCC 4.8 2023-09-15 10:36:15 -06:00
ptrace.m4
range-chain.h gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
README
refcounted-object.h
reference-to-pointer-iterator.h [gdb] Fix typos 2023-06-03 22:43:57 +02:00
rsp-low.cc
rsp-low.h
run-time-clock.cc
run-time-clock.h
safe-iterator.h gdbsupport: make basic_safe_iterator::operator* return the same thing as underlying iterator 2023-05-25 09:44:52 -04:00
safe-strerror.cc
scope-exit.h
scoped_fd.h
scoped_ignore_signal.h
scoped_ignore_sigttou.h gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
scoped_mmap.cc
scoped_mmap.h
scoped_restore.h
search.cc
search.h
selftest.cc gdbsupport: record and print failed selftest names 2023-11-03 14:25:59 -04:00
selftest.h
selftest.m4
signals-state-save-restore.cc
signals-state-save-restore.h
signals.cc [gdb] Fix typos 2023-06-03 22:43:57 +02:00
symbol.h
tdesc.cc
tdesc.h
thread-pool.cc gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
thread-pool.h gdb: Replace gdb::optional with std::optional 2023-11-21 11:52:35 +00:00
traits.h
underlying.h
valid-expr.h
version.h
warning.m4
x86-xstate.h x86: Remove X86_XSTATE_SIZE and related constants. 2023-08-28 14:18:19 -07:00
xml-utils.cc
xml-utils.h

This is a helper library that is used by gdb and gdbserver.

To send patches, follow the gdb patch submission instructions in
../gdb/CONTRIBUTE.  For maintainers, see ../gdb/MAINTAINERS.