Add ptid_t::to_string (gdb-11-branch only)
[deliverable/binutils-gdb.git] / gdbsupport / ptid.cc
index e61e15e35871d74b7093bbbc13adc134b752210d..d4bd715cb886412bde65cdab61e1a6d946292f6d 100644 (file)
 
 #include "common-defs.h"
 #include "ptid.h"
+#include "print-utils.h"
 
 /* See ptid.h for these.  */
 
 ptid_t const null_ptid = ptid_t::make_null ();
 ptid_t const minus_one_ptid = ptid_t::make_minus_one ();
+
+/* See ptid.h.  */
+
+std::string
+ptid_t::to_string () const
+{
+  return string_printf ("%d.%ld.%s", m_pid, m_lwp, pulongest (m_tid));
+}
This page took 0.023925 seconds and 4 git commands to generate.