gdb: rename target_waitstatus_to_string to target_waitstatus::to_string

Make target_waitstatus_to_string a "to_string" method of
target_waitstatus, a bit like we have ptid_t::to_string already.  This
will save a bit of typing.

Change-Id: Id261b7a09fa9fa3c738abac131c191a6f9c13905
This commit is contained in:
Simon Marchi
2021-11-22 11:27:29 -05:00
committed by Simon Marchi
parent a58577878b
commit 7dca2ea7ff
8 changed files with 33 additions and 44 deletions

View File

@@ -180,9 +180,7 @@
static void
target_debug_print_struct_target_waitstatus_p (struct target_waitstatus *status)
{
std::string str = target_waitstatus_to_string (status);
fputs_unfiltered (str.c_str (), gdb_stdlog);
fputs_unfiltered (status->to_string ().c_str (), gdb_stdlog);
}