diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-22 11:27:29 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-11-22 13:57:43 -0500 |
commit | 7dca2ea7ff4c2c786119e13e81a5e6b0c1bf1d2d (patch) | |
tree | 11f65eb07e8a35b04dd4fda44eca976d8c6d9f23 /gdb/target/waitstatus.h | |
parent | a58577878b19cb2e6ebbfdbff557203c344955b1 (diff) | |
download | gdb-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/waitstatus.h')
-rw-r--r-- | gdb/target/waitstatus.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/target/waitstatus.h b/gdb/target/waitstatus.h index 333863e..f5b050b 100644 --- a/gdb/target/waitstatus.h +++ b/gdb/target/waitstatus.h @@ -321,6 +321,12 @@ struct target_waitstatus return m_value.syscall_number; } + /* Return a pretty printed form of target_waitstatus. + + This is only meant to be used in debug messages, not for user-visible + messages. */ + std::string to_string () const; + private: /* Reset the wait status to its original state. */ void reset () @@ -371,9 +377,4 @@ enum target_stop_reason TARGET_STOPPED_BY_SINGLE_STEP }; -/* Prototypes */ - -/* Return a pretty printed form of target_waitstatus. */ -std::string target_waitstatus_to_string (const struct target_waitstatus *); - #endif /* TARGET_WAITSTATUS_H */ |