diff options
author | Kyle Galloway <kgallowa@redhat.com> | 2007-02-02 15:23:20 +0000 |
---|---|---|
committer | Kyle Galloway <kgallowa@gcc.gnu.org> | 2007-02-02 15:23:20 +0000 |
commit | c9d607421cc4eb4df08a495a6e075d11381cd13c (patch) | |
tree | dd71629e2996bc6e4e3408892f322189ebd7819f /libjava/gnu | |
parent | 311635d10343023d65e97d2fbb31a93e4b40090d (diff) | |
download | gcc-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.cc | 11 |
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 |