diff options
author | kgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-02 15:23:20 +0000 |
---|---|---|
committer | kgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-02 15:23:20 +0000 |
commit | bf14e4f3f8fafa6da0f7b121938a77da11530076 (patch) | |
tree | dd71629e2996bc6e4e3408892f322189ebd7819f /libjava/gnu/classpath | |
parent | c54628879d2cad5d90ebcb62b2a5d03ba939da06 (diff) | |
download | gcc-bf14e4f3f8fafa6da0f7b121938a77da11530076.tar.gz |
2007-02-02 Kyle Galloway <kgallowa@redhat.com>
* gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount): Implement.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121504 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/classpath')
-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 389b6cc62ae..3966e852fb8 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 |