mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
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:
committed by
Simon Marchi
parent
a58577878b
commit
7dca2ea7ff
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user