binutils-gdb/gdb/unittests
Andrew Burgess 820ed8af6a gdb: add operator+= and operator+ overload for std::string
This commit adds operator+= and operator+ overloads for adding
gdb::unique_xmalloc_ptr<char> to a std::string.  I could only find 3
places in GDB where this was useful right now, and these all make use
of operator+=.

I've also added a self test for gdb::unique_xmalloc_ptr<char>, which
makes use of both operator+= and operator+, so they are both getting
used/tested.

There should be no user visible changes after this commit, except when
running 'maint selftest', where the new self test is visible.
2022-02-25 17:50:22 +00:00
..
basic_string_view Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
optional Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
array-view-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
child-path-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
cli-utils-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
command-def-selftests.c Reduce explicit use of gdb_stdout 2022-01-25 15:22:49 -07:00
common-utils-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
copy_bitwise-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
enum-flags-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
environ-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
filtered_iterator-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
format_pieces-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
function-view-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
gdb_tilde_expand-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
gmp-utils-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
intrusive_list-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
lookup_name_info-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
main-thread-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
memory-map-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
memrange-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mkdir-recursive-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
observable-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
offset-type-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
optional-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
parallel-for-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
parse-connection-spec-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
ptid-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
rsp-low-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
scoped_fd-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
scoped_ignore_signal-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
scoped_mmap-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
scoped_restore-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
search-memory-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
string_view-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
style-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
tracepoint-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
tui-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
ui-file-selftests.c Implement putstr and putstrn in ui_file 2022-01-05 11:01:02 -07:00
unique_xmalloc_ptr_char.c gdb: add operator+= and operator+ overload for std::string 2022-02-25 17:50:22 +00:00
unpack-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
utils-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
vec-utils-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
xml-utils-selftests.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00