Files
binutils-gdb/gdbsupport
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
..
2020-10-25 21:08:49 -04:00
2021-01-22 12:43:27 -05:00
2021-11-09 08:21:18 -07:00
2021-11-09 08:21:18 -07:00
2021-11-09 08:21:18 -07:00
2021-09-23 09:30:54 -06:00
2021-09-23 09:30:54 -06:00
2021-03-24 14:57:53 -03:00
2021-03-24 14:57:53 -03:00
2021-10-28 11:17:45 -04:00

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.