summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
diff options
context:
space:
mode:
authorkgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-17 18:36:12 +0000
committerkgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-17 18:36:12 +0000
commit0aa75869cbeb02e436061c336ce358d6a9a84c2a (patch)
treefa89c6238ec855905d0d047acc3527b216df5fc3 /libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
parentb03d837f0c3a0fb4bc9c7f4f5fc296bef925b40d (diff)
downloadppe42-gcc-0aa75869cbeb02e436061c336ce358d6a9a84c2a.tar.gz
ppe42-gcc-0aa75869cbeb02e436061c336ce358d6a9a84c2a.zip
2007-05-17 Kyle Galloway <kgallowa@redhat.com>
* gnu/classpath/jdwp/VMFrame.java (<init>): Add parameter for "this" pointer. * gnu/classpath/jdwp/VMFrame.h: Regenerated. * classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt. * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrame): Use new VMFrame constructor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124806 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc')
-rw-r--r--libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
index 7fee49bee4c..db33781378e 100644
--- a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
+++ b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
@@ -618,12 +618,22 @@ getFrame (Thread *thread, jlong frameID)
VMMethod *meth
= getClassMethod (klass, reinterpret_cast<jlong> (info.method));
+ jobject this_obj;
+
if (info.location == -1)
- loc = new Location (meth, 0);
+ {
+ loc = new Location (meth, 0);
+ this_obj = NULL;
+ }
else
- loc = new Location (meth, info.location);
+ {
+ loc = new Location (meth, info.location);
+ _Jv_InterpFrame *iframe = reinterpret_cast<_Jv_InterpFrame *> (vm_frame);
+ this_obj = iframe->get_this_ptr ();
+ }
- return new VMFrame (thread, reinterpret_cast<jlong> (vm_frame), loc);
+ return new VMFrame (thread, reinterpret_cast<jlong> (vm_frame), loc,
+ this_obj);
}
jint
OpenPOWER on IntegriCloud