Add ptid_t::to_string (gdb-11-branch only)
[deliverable/binutils-gdb.git] / gdbsupport / ptid.h
index 4f856ab674f7f1b5e370242b197e28ff8f4800c8..034b803f93e0c4f0e0f2d054f041e9e47c052236 100644 (file)
@@ -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 ()
This page took 0.02443 seconds and 4 git commands to generate.