natVMVirtualMachine.cc (getFrameCount): Implement.
authorKyle Galloway <kgallowa@redhat.com>
Fri, 2 Feb 2007 15:23:20 +0000 (15:23 +0000)
committerKyle Galloway <kgallowa@gcc.gnu.org>
Fri, 2 Feb 2007 15:23:20 +0000 (15:23 +0000)
2007-02-02  Kyle Galloway  <kgallowa@redhat.com>

   * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount): Implement.

From-SVN: r121504

libjava/ChangeLog
libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc

index cf997ac2becf0740e0b773bc1f9b0fae9fa0ebdd..1186245796872f66b4e23035eed9ce592433a03b 100644 (file)
@@ -1,3 +1,7 @@
+2007-02-02  Kyle Galloway  <kgallowa@redhat.com>
+
+   * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount): Implment. 
+
 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
 
        * configure.ac (libjava_cv_anon_version_script): New test.
index 389b6cc62ae546bd3f49e91f602f9bc00df8cb8d..3966e852fb896eac4bdd6c5ab3eaa88035c3cbea 100644 (file)
@@ -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