More debugger support.
This gets us as far as the first DDMS-specific message, which means
it's time to bring in a bunch more code.
Change-Id: I3f9d75706d5ddde0aa21fcca558132282b94eff4
diff --git a/src/jdwp/jdwp.h b/src/jdwp/jdwp.h
index cd2bfa7..a590c27 100644
--- a/src/jdwp/jdwp.h
+++ b/src/jdwp/jdwp.h
@@ -31,6 +31,8 @@
namespace art {
+struct Thread;
+
namespace JDWP {
/*
@@ -118,11 +120,10 @@
*/
bool IsActive();
- /*
- * Return the debugger thread's handle, or 0 if the debugger thread isn't
- * running.
+ /**
+ * Returns the Thread* for the JDWP daemon thread.
*/
- pthread_t GetDebugThread();
+ Thread* GetDebugThread();
/*
* Get time, in milliseconds, since the last debugger activity.
@@ -247,7 +248,8 @@
ConditionVariable thread_start_cond_;
volatile int32_t debug_thread_started_;
- pthread_t debugThreadHandle;
+ pthread_t pthread_;
+ Thread* thread_;
public: // TODO: fix privacy
ObjectId debugThreadId;
private: