binutils-gdb/gdb/unittests
Simon Marchi 06de25b7af gdb: introduce target_waitkind_str, use it in target_waitstatus::to_string
I would like to print target_waitkind values in debug messages, so I
think that a target_waitkind-to-string function would be useful.  While
at it, use it in target_waitstatus::to_string.  This changes the output
of target_waitstatus::to_string a bit, but I think it is for the better.
The debug messages will show a string matching exactly the
target_waitkind enumerator (minus the TARGET_WAITKIND prefix).

As a convenience, make string_appendf return the same reference to
string it got as a parameter.  This allows doing this:

  return string_appendf (str, "foo");

... keeping the code concise.

Change-Id: I383dffc9c78614e7d0668b1516073905e798eef7
2021-11-22 13:57:49 -05:00
..
basic_string_view
optional
array-view-selftests.c gdb: fix array-view-selftests.c build with g++ 4.8 2021-11-18 16:35:34 -05:00
child-path-selftests.c
cli-utils-selftests.c
command-def-selftests.c gdb: add cmd_list_element::is_prefix 2021-05-17 14:01:26 -04:00
common-utils-selftests.c gdb: introduce target_waitkind_str, use it in target_waitstatus::to_string 2021-11-22 13:57:49 -05:00
copy_bitwise-selftests.c
enum-flags-selftests.c
environ-selftests.c
filtered_iterator-selftests.c
format_pieces-selftests.c Fix format_pieces selftest on Windows 2021-10-19 13:14:48 -06:00
function-view-selftests.c
gdb_tilde_expand-selftests.c
gmp-utils-selftests.c
intrusive_list-selftests.c [gdb] Change register_test to use std::function arg 2021-09-21 00:41:26 +02:00
lookup_name_info-selftests.c
main-thread-selftests.c
memory-map-selftests.c
memrange-selftests.c
mkdir-recursive-selftests.c
observable-selftests.c
offset-type-selftests.c
optional-selftests.c
parallel-for-selftests.c Fix unit test build on Windows 2021-09-08 09:17:39 -06:00
parse-connection-spec-selftests.c
ptid-selftests.c
rsp-low-selftests.c
scoped_fd-selftests.c gdbsupport: make gdb_mkostemp_cloexec return a scoped_fd 2021-09-30 15:21:48 -04:00
scoped_ignore_signal-selftests.c Add a unit test for scoped_ignore_sigpipe 2021-06-17 16:22:12 +01:00
scoped_mmap-selftests.c gdbsupport: make gdb_mkostemp_cloexec return a scoped_fd 2021-09-30 15:21:48 -04:00
scoped_restore-selftests.c
search-memory-selftests.c
string_view-selftests.c
style-selftests.c
tracepoint-selftests.c
tui-selftests.c
unpack-selftests.c
utils-selftests.c
vec-utils-selftests.c
xml-utils-selftests.c