Implement debugger support for getting thread stacks.
You can now "where all" in jdb.
Change-Id: Iccff0427f39b2f2ab3786f05b89850d50b87adb2
diff --git a/src/jdwp/jdwp_main.cc b/src/jdwp/jdwp_main.cc
index 12b689c..3bc0d41 100644
--- a/src/jdwp/jdwp_main.cc
+++ b/src/jdwp/jdwp_main.cc
@@ -450,6 +450,13 @@
return os;
}
+std::ostream& operator<<(std::ostream& os, const JdwpLocation& rhs) {
+ // TODO: do we really want the Class* and Method* as pointers?
+ os << rhs.typeTag << " " << (void*) rhs.classId << " " << (void*) rhs.methodId << " " << rhs.idx
+ << " (" << Dbg::GetClassDescriptor(rhs.classId) << "." << Dbg::GetMethodName(rhs.classId, rhs.methodId) << ")";
+ return os;
+}
+
} // namespace JDWP
} // namespace art