Implement JDWP InvokeMethod and breakpoints on exception throwing.
Change-Id: I1142bee843104f0850fd7270752104d5d73a44f0
diff --git a/src/thread.h b/src/thread.h
index 823b72c..c4c619a 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -241,11 +241,12 @@
return &stats_;
}
- // Returns the Method* for the current method.
- // This is used by the JNI implementation for logging and diagnostic purposes.
- const Method* GetCurrentMethod() const;
+ int GetSuspendCount() const {
+ return suspend_count_;
+ }
- uint32_t GetCurrentReturnPc() const;
+ // Returns the current Method* and native PC (not dex PC) for this thread.
+ Method* GetCurrentMethod(uintptr_t* pc = NULL, Method*** sp = NULL) const;
bool IsExceptionPending() const {
return exception_ != NULL;