Fix JDWP stack frame regressions.
The bug was that Dbg::GetThisObject didn't take a thread argument, so
always used the calling thread, which is never the thread whose frames
you actually care about.
I've also made the JDWP ThreadReference.Frames get all the frames at once
now, since we no longer have fast random access to individual frames.
Change-Id: I0ce2bd2088e11d5ea14f9785d7ca0e3890b3cb9b
diff --git a/src/jdwp/jdwp_expand_buf.h b/src/jdwp/jdwp_expand_buf.h
index 55d568a..ba70920 100644
--- a/src/jdwp/jdwp_expand_buf.h
+++ b/src/jdwp/jdwp_expand_buf.h
@@ -27,6 +27,7 @@
namespace JDWP {
struct ExpandBuf; /* private */
+struct JdwpLocation;
/* create a new struct */
ExpandBuf* expandBufAlloc();
@@ -58,6 +59,7 @@
void expandBufAdd8BE(ExpandBuf* pBuf, uint64_t val);
void expandBufAddUtf8String(ExpandBuf* pBuf, const char* s);
void expandBufAddUtf8String(ExpandBuf* pBuf, const std::string& s);
+void expandBufAddLocation(ExpandBuf* pReply, const JdwpLocation& location);
} // namespace JDWP