diff options
| author | Kyle Galloway <kgallowa@redhat.com> | 2007-02-08 18:21:00 +0000 |
|---|---|---|
| committer | Kyle Galloway <kgallowa@gcc.gnu.org> | 2007-02-08 18:21:00 +0000 |
| commit | 0588f8c8db031785f71616191b72e8df4de07532 (patch) | |
| tree | 130de2f63f3612d6cfd4bc1a0fa9b273b6863f31 /libjava/gnu/classpath/jdwp/VMFrame.java | |
| parent | e9105edd8c0478538778b5d1d2345ee8e9519783 (diff) | |
StackFrameCommandSet.java (executeGetValues): Pass jlong instead of ByteBuffer.
2007-02-08 Kyle Galloway <kgallowa@redhat.com>
* classpath/gnu/classpath/jdwp/processor/
StackFrameCommandSet.java (executeGetValues): Pass jlong instead
of ByteBuffer.
(executeSetValues): Ditto.
(executeThisObject): Ditto.
* classpath/gnu/classpath/jdwp/processor/
StackFrameCommandSet.class: Rebuilt.
* classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class:
Rebuilt.
* classpath/lib/gnu/classpath/jdwp/VMFrame.class: Rebuilt.
* classpath/lib/gnu/classpath/jdwp/exception/
InvalidFrameException.java: New file.
* gnu/classpath/jdwp/VMFrame.java: Added field for thread of
frame.
(Constructor): New method.
* gnu/classpath/jdwp/VMFrame.h: Regenerated.
* gnu/classpath/jdwp/VMVirtualMachine.java
(getFrame): Changed ByteBuffer to jlong.
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(getFrame): Implement.
* gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated.
From-SVN: r121719
Diffstat (limited to 'libjava/gnu/classpath/jdwp/VMFrame.java')
| -rw-r--r-- | libjava/gnu/classpath/jdwp/VMFrame.java | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/libjava/gnu/classpath/jdwp/VMFrame.java b/libjava/gnu/classpath/jdwp/VMFrame.java index cd213025a72..e0f093fd685 100644 --- a/libjava/gnu/classpath/jdwp/VMFrame.java +++ b/libjava/gnu/classpath/jdwp/VMFrame.java @@ -1,5 +1,5 @@ /* VMFrame.java -- Reference implementation of VM hooks for JDWP Frame access. - Copyright (C) 2005, 2006 Free Software Foundation + Copyright (C) 2005, 2006, 2007 Free Software Foundation This file is part of GNU Classpath. @@ -54,7 +54,10 @@ public class VMFrame */ public static final int SIZE = 8; - // The object this frame resides in + // The thread this frame resides in + private Thread thread; + + //The object of this frame private Object obj; // The current location of this frame @@ -64,6 +67,20 @@ public class VMFrame private long id; /** + * Create a new VMFrame object. + * + * @param thr a Thread, the thread this frame is in + * @param frame_id a long, the jframeID of this frame + * @param frame_loc a Location, the location of this frame + */ + public VMFrame(Thread thr, long frame_id, Location frame_loc) + { + thread = thr; + id = frame_id; + loc = frame_loc; + } + + /** * Gets the current location of the frame. */ public Location getLocation() @@ -84,6 +101,14 @@ public class VMFrame * @param value The value to assign the variable to */ public native void setValue(int slot, Object value); + + /** + * Get the thread this frame is in. + */ + public Thread getThread() + { + return thread; + } /** * Get the object which is represented by 'this' in the context of the frame, |
