aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/ptid.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdbsupport/ptid.h')
-rw-r--r--gdbsupport/ptid.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdbsupport/ptid.h b/gdbsupport/ptid.h
index a0a9175..a2553b2 100644
--- a/gdbsupport/ptid.h
+++ b/gdbsupport/ptid.h
@@ -33,6 +33,7 @@
*/
#include <functional>
+#include <string>
class ptid_t
{
@@ -124,6 +125,12 @@ public:
|| *this == filter);
}
+ /* Return a string representation of the ptid.
+
+ This is only meant to be used in debug messages. */
+
+ std::string to_string () const;
+
/* Make a null ptid. */
static constexpr ptid_t make_null ()