mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
5ac588997c
gdb's copy of basic_string_view includes a to_string method. However, according to cppreference, this is not a method on the real std::basic_string_view: https://en.cppreference.com/w/cpp/string/basic_string_view This difference matters because gdb_string_view.h will use the standard implementation when built with a C++17 or later. This caused PR build/26183. This patch fixes the problem by changing the method to be a standalone helper function, and then rewriting the uses. Tested by rebuilding with a version of GCC that defaults to C++17. (Note that the build still is not clean; and also I noticed that the libstdc++ string_view forbids the use of nullptr ... I wonder if gdb violates that.) gdb/ChangeLog 2020-06-30 Tom Tromey <tromey@adacore.com> PR build/26183: * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use gdb::to_string. gdbsupport/ChangeLog 2020-06-30 Tom Tromey <tromey@adacore.com> PR build/26183: * gdb_string_view.h (basic_string_view::to_string): Remove. (gdb::to_string): New function. |
||
---|---|---|
.. | ||
.dir-locals.el | ||
.gitattributes | ||
acinclude.m4 | ||
aclocal.m4 | ||
agent.cc | ||
agent.h | ||
alt-stack.h | ||
array-view.h | ||
ax.def | ||
block-signals.h | ||
break-common.h | ||
btrace-common.cc | ||
btrace-common.h | ||
buffer.cc | ||
buffer.h | ||
byte-vector.h | ||
ChangeLog | ||
check-defines.el | ||
cleanups.cc | ||
cleanups.h | ||
common-debug.cc | ||
common-debug.h | ||
common-defs.h | ||
common-exceptions.cc | ||
common-exceptions.h | ||
common-gdbthread.h | ||
common-inferior.cc | ||
common-inferior.h | ||
common-regcache.cc | ||
common-regcache.h | ||
common-types.h | ||
common-utils.cc | ||
common-utils.h | ||
common.m4 | ||
config.in | ||
configure | ||
configure.ac | ||
create-version.sh | ||
def-vector.h | ||
default-init-alloc.h | ||
enum-flags.h | ||
environ.cc | ||
environ.h | ||
errors.cc | ||
errors.h | ||
event-loop.cc | ||
event-loop.h | ||
fileio.cc | ||
fileio.h | ||
filestuff.cc | ||
filestuff.h | ||
filtered-iterator.h | ||
format.cc | ||
format.h | ||
forward-scope-exit.h | ||
function-view.h | ||
gdb_assert.h | ||
gdb_binary_search.h | ||
gdb_locale.h | ||
gdb_optional.h | ||
gdb_proc_service.h | ||
gdb_ref_ptr.h | ||
gdb_select.h | ||
gdb_setjmp.h | ||
gdb_signals.h | ||
gdb_splay_tree.h | ||
gdb_string_view.h | ||
gdb_string_view.tcc | ||
gdb_sys_time.h | ||
gdb_tilde_expand.cc | ||
gdb_tilde_expand.h | ||
gdb_unique_ptr.h | ||
gdb_unlinker.h | ||
gdb_vecs.cc | ||
gdb_vecs.h | ||
gdb_wait.cc | ||
gdb_wait.h | ||
gdb-dlfcn.cc | ||
gdb-dlfcn.h | ||
gdb-safe-ctype.h | ||
gdb-sigmask.h | ||
hash_enum.h | ||
host-defs.h | ||
job-control.cc | ||
job-control.h | ||
Makefile.am | ||
Makefile.in | ||
netstuff.cc | ||
netstuff.h | ||
new-op.cc | ||
next-iterator.h | ||
observable.h | ||
offset-type.h | ||
parallel-for.h | ||
pathstuff.cc | ||
pathstuff.h | ||
poison.h | ||
preprocessor.h | ||
print-utils.cc | ||
print-utils.h | ||
ptid.cc | ||
ptid.h | ||
README | ||
refcounted-object.h | ||
rsp-low.cc | ||
rsp-low.h | ||
run-time-clock.cc | ||
run-time-clock.h | ||
safe-iterator.h | ||
safe-strerror.cc | ||
scope-exit.h | ||
scoped_fd.h | ||
scoped_mmap.cc | ||
scoped_mmap.h | ||
scoped_restore.h | ||
selftest.cc | ||
selftest.h | ||
selftest.m4 | ||
signals-state-save-restore.cc | ||
signals-state-save-restore.h | ||
signals.cc | ||
symbol.h | ||
tdesc.cc | ||
tdesc.h | ||
thread-pool.cc | ||
thread-pool.h | ||
traits.h | ||
underlying.h | ||
valid-expr.h | ||
version.h | ||
warning.m4 | ||
x86-xstate.h | ||
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.