projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ptid_t::to_string (gdb-11-branch only)
[deliverable/binutils-gdb.git]
/
gdbsupport
/
ptid.cc
diff --git
a/gdbsupport/ptid.cc
b/gdbsupport/ptid.cc
index 73e2918cbc5f492a6c3e17f3f1eea2da166bea97..e51806626127098929bf7dceda3e8eaeb36b7925 100644
(file)
--- a/
gdbsupport/ptid.cc
+++ b/
gdbsupport/ptid.cc
@@
-19,8
+19,17
@@
#include "common-defs.h"
#include "ptid.h"
#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 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.026803 seconds
and
4
git commands to generate.