Bring across the JDWP implementation.
This compiles and links, but does nothing until we fill out the 100 or so
unimplemented methods in "debugger.cc". Note that I also need to add the
extra command-line handling for the JDWP agent stuff, and add calls from
the runtime to the various "something interesting is going on" hooks.
Change-Id: I477cf3caf9e248c384ce1d739cbfadb60e2008bc
diff --git a/src/dalvik_system_VMDebug.cc b/src/dalvik_system_VMDebug.cc
index 0540631..4537a69 100644
--- a/src/dalvik_system_VMDebug.cc
+++ b/src/dalvik_system_VMDebug.cc
@@ -15,6 +15,7 @@
*/
#include "class_linker.h"
+#include "debugger.h"
#include "jni_internal.h"
#include "ScopedUtfChars.h"
#include "toStringArray.h"
@@ -112,18 +113,15 @@
}
jboolean VMDebug_isDebuggerConnected(JNIEnv*, jclass) {
- UNIMPLEMENTED(WARNING);
- return JNI_FALSE; //dvmDbgIsDebuggerConnected();
+ return Dbg::IsDebuggerConnected();
}
jboolean VMDebug_isDebuggingEnabled(JNIEnv*, jclass) {
- UNIMPLEMENTED(WARNING);
- return JNI_FALSE; //return gDvm.jdwpConfigured;
+ return Dbg::IsDebuggingEnabled();
}
jlong VMDebug_lastDebuggerActivity(JNIEnv*, jclass) {
- UNIMPLEMENTED(WARNING);
- return 0; //dvmDbgLastDebuggerActivity();
+ return Dbg::LastDebuggerActivity();
}
void VMDebug_startInstructionCounting(JNIEnv* env, jclass) {