OSDN Git Service

2007-02-02 Kyle Galloway <kgallowa@redhat.com>
authorkgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Feb 2007 15:23:20 +0000 (15:23 +0000)
committerkgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Feb 2007 15:23:20 +0000 (15:23 +0000)
   * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount): Implement.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121504 138bc75d-0d04-0410-961f-82ee72b054a4

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

index cf997ac..1186245 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 389b6cc..3966e85 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