aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-debug.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-22 11:27:29 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-11-22 13:57:43 -0500
commit7dca2ea7ff4c2c786119e13e81a5e6b0c1bf1d2d (patch)
tree11f65eb07e8a35b04dd4fda44eca976d8c6d9f23 /gdb/target-debug.h
parenta58577878b19cb2e6ebbfdbff557203c344955b1 (diff)
downloadgdb-7dca2ea7ff4c2c786119e13e81a5e6b0c1bf1d2d.zip
gdb-7dca2ea7ff4c2c786119e13e81a5e6b0c1bf1d2d.tar.gz
gdb-7dca2ea7ff4c2c786119e13e81a5e6b0c1bf1d2d.tar.bz2
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
Diffstat (limited to 'gdb/target-debug.h')
-rw-r--r--gdb/target-debug.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h
index 5949441..c9bc68b 100644
--- a/gdb/target-debug.h
+++ b/gdb/target-debug.h
@@ -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);
}