aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authorKyle Galloway <kgallowa@redhat.com>2007-02-02 15:23:20 +0000
committerKyle Galloway <kgallowa@gcc.gnu.org>2007-02-02 15:23:20 +0000
commitc9d607421cc4eb4df08a495a6e075d11381cd13c (patch)
treedd71629e2996bc6e4e3408892f322189ebd7819f /libjava/gnu
parent311635d10343023d65e97d2fbb31a93e4b40090d (diff)
downloadgcc-c9d607421cc4eb4df08a495a6e075d11381cd13c.zip
gcc-c9d607421cc4eb4df08a495a6e075d11381cd13c.tar.gz
gcc-c9d607421cc4eb4df08a495a6e075d11381cd13c.tar.bz2
natVMVirtualMachine.cc (getFrameCount): Implement.
2007-02-02 Kyle Galloway <kgallowa@redhat.com> * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount): Implement. From-SVN: r121504
Diffstat (limited to 'libjava/gnu')
-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