aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/classpath
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/classpath')
-rw-r--r--libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
index 389b6cc..3966e85 100644
--- a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
+++ b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
@@ -367,9 +367,16 @@ getFrame (MAYBE_UNUSED Thread *thread, MAYBE_UNUSED::java::nio::ByteBuffer *bb)
jint
gnu::classpath::jdwp::VMVirtualMachine::
-getFrameCount (MAYBE_UNUSED Thread *thread)
+getFrameCount (Thread *thread)
{
- return 0;
+ jint frame_count;
+
+ jvmtiError jerr = _jdwp_jvmtiEnv->GetFrameCount (thread, &frame_count);
+
+ if (jerr != JVMTI_ERROR_NONE)
+ throw_jvmti_error (jerr);
+
+ return frame_count;
}
jint