summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
Commit message (Collapse)AuthorAgeFilesLines
* * gnu/classpath/jdwp/natVMVirtualMachine.cc (handle_single_step): Usedavek2009-04-221-2/+2
| | | | | | | | | casted pointer in debugging assert. (jdwpBreakpointCB): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146627 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/VMVirtualMachine.java (executeMethod):kseitz2007-06-201-3/+3
| | | | | | | | | | | | | | | | Update from reference implementation. * gnu/classpath/jdwp/natVMVirtualMachine.cc (executeMethod): Update parameter list to match new VMVirtualMachine interface. * classpath/lib/gnu/classpath/jdwp/processor/ClassTypeCommandSet.class: Regenerate. * classpath/lib/gnu/classpath/jdwp/processor/ ObjectReferenceCommandSet.class: Regenerate. * classpath/lib/gnu/classpath/jdwp/value/ObjectValue.class: Regenerate. * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class: Regenerate. * classpath/lib/gnu/classpath/jdwp/util/MethodResult.class: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125896 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-05-17 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-05-171-3/+13
| | | | | | | | | | | | | * 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
* * include/java-interp.h (breakpoint_at): Declare.kseitz2007-05-161-5/+30
| | | | | | | | | | | | | | | | | | | | | | * interpret.cc (breakpoint_at): New function. * gnu/classpath/jdwp/VMVirtualMachine.java (_event_list): New member. * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize): Initialize _event_list. (handle_single_step): If there is a breakpoint at the location at which we are stopping, do not send the notification. Instead add the event to a list of events that occur at this location. (jdwpBreakpointCB): If the event list is not empty, send whatever events are in it and the breakpoint event in a single notification. Mark parameter jni_env as MAYBE_UNUSED. * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class: Regenerated. * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124777 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-05-04 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-05-041-5/+18
| | | | | | | | | * gnu/classpath/jdwp/natVMVirtualMachine.cc (getClassMethod): Change to use JVMTI. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124447 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jvmti-int.h (_Jv_ReportJVMTIExceptionThrow):kseitz2007-05-041-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Declare. * interpret.cc (_Jv_ReportJVMTIExceptionThrow): New function. (find_catch_location): New function. (REPORT_EXCEPTION): New macro. (throw_internal_error): Use REPORT_EXCEPTION. (throw_incompatible_class_change_error): Likewise. (throw_null_pointer_exception): Likewise. (throw_class_format_error): Likewise. * interpret-run.cc (INTERP_REPORT_EXCEPTION)[DEBUG]: Set to REPORT_EXCEPTION. (INTERP_REPORT_EXCEPTION)[!DEBUG]: Make nop. (insn_new): Use INTERP_REPORT_EXCEPTION. (insn_athrow): Likewise. Remove previous JVMTI exception notifications. Add JVMTI ExceptionCatch notificatin. * jni.cc (_Jv_PopSystemFrame): Notify JVMTI clients of exception throw. * gnu/gcj/jvmti/ExceptionEvent.java: Removed. * gnu/gcj/jvmti/ExceptionEvent.h: Removed. * classpath/lib/gnu/gcj/jvmti/ExceptionEvent.class: Removed. * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpExceptionCB): New function. (jdwpVMInitCB): Set Exception event handler and enable. * sources.am: Regenerated. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124406 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-04-24 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-04-241-2/+31
| | | | | | | | | * gnu/classpath/jdwp/natVMVirtualMachine.java (getThreadStatus): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124117 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-04-23 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-04-231-1/+9
| | | | | | | | | * gnu/classpath/jdwp/natVMVirtualMachine.cc (getSourceFile): Check for null source file and throw an exception indicating this. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124066 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/VMFrame.java: Update from upstreamkseitz2007-03-271-10/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | classpath. * gnu/classpath/jdwp/natVMFrame.cc: Likewise. * gnu/classpath/jdwp/VMVirtualMachine.java: Likewise. * gnu/classpath/jdwp/natVMVirtualMachine.cc: Likewise. (initialize): Fix compiler type-punning warning. (getAllLoadedClasses): Return empty list instead of NULL. (getLoadRequests): Likewise. * gnu/classpath/jdwp/exception/InvalidTagException.h: New file. * gnu/classpath/jdwp/exception/InvalidSlotException.h: New file. * gnu/classpath/jdwp/exception/TypeMismatchException.h: New file. * gnu/classpath/jdwp/VMVirtualMachine.h: Rebuilt. * gnu/classpath/jdwp/value/CharValue.h: New file. * gnu/classpath/jdwp/value/LongValue.h: New file. * gnu/classpath/jdwp/value/ShortValue.h: New file. * gnu/classpath/jdwp/value/Value.h: New file. * gnu/classpath/jdwp/value/BooleanValue.h: New file. * gnu/classpath/jdwp/value/VoidValue.h: New file. * gnu/classpath/jdwp/value/ByteValue.h: New file. * gnu/classpath/jdwp/value/FloatValue.h: New file. * gnu/classpath/jdwp/value/ObjectValue.h: New file. * gnu/classpath/jdwp/value/StringValue.h: New file. * gnu/classpath/jdwp/value/ValueFactory.h: New file. * gnu/classpath/jdwp/value/IntValue.h: New file. * gnu/classpath/jdwp/value/DoubleValue.h: New file. * gnu/classpath/jdwp/VMFrame.h: Rebuilt. * gnu/classpath/jdwp/id/NullObjectId.h: New file. * gnu/classpath/jdwp/util/MethodResult.h: Rebuilt. * gnu/classpath/jdwp/util/NullObject.h: New file. * gnu/classpath/jdwp/util/MonitorInfo.h: New file. * Makefile.in: Rebuilt. * sources.am: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123266 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/java-interp.h (_Jv_InterpClass): Declarekseitz2007-03-131-2/+2
| | | | | | | | | | | | friend function _Jv_GetInterpClassSourceFile. * java/lang/Class.h (Class): Likewise. * java/lang/natClass.cc (_Jv_GetInterpClassSourceFile): New function. * gnu/classpath/jdwp/natVMVirtualMachine.cc (getSourceFile): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122882 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cckseitz2007-02-201-19/+20
| | | | | | | | (jdwpClassPrepareCB): Move class status stuff to ... (getClassStatus): ... here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122164 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cckseitz2007-02-171-0/+175
| | | | | | | | | | | (get_line_table): New function. (handle_single_step): New function. (jdwpSingleStepCB): New function. (jdwpVMInitCB): Define a JVMTI single step callback, but don't enable it until needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122065 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-02-15 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-02-151-4/+42
| | | | | | * gnu/classpath/jdwp/natVMVirtualMachine (getFrames): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121997 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cckseitz2007-02-131-2/+28
| | | | | | | | | (jdwpBreakpointCB): New function. (jdwpVMInitCB): Define and enable the breakpoint callback. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121889 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/VMVirtualMachine.javakseitz2007-02-091-1/+79
| | | | | | | | | | | | | | | | | (_stepping_threads): New member. * classpath/lib/gnu/classpath/jdwp/VMVirtualMachine.class: Regenerated. * gnu/classpath/jdwp/VMVirtualMachine.h: Regenerated. * gnu/claspath/jdwp/natVMVirtualMachine.cc (get_request_step_filter): New function. (DISABLE_EVENT): New macro. (initialize): Initialize _stepping_threads. (registerEvent): Implement EVENT_SINGLE_STEP. (unregisterEvent): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121769 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-02-08 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-02-081-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121719 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cckseitz2007-02-051-1/+94
| | | | | | | | | (registerEvent): Implement EVENT_BREAKPOINT. (unregisterEvent): Likewise. (get_request_location): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121608 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-02-02 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-02-021-2/+9
| | | | | | * gnu/classpath/jdwp/natVMVirtualMachine.cc (getFrameCount): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121504 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):kseitz2007-01-291-8/+4
| | | | | | | | | | | | | | | | | | | | Define. [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building gcj. All jvmti object types now are defined to be their corresponding java classes. * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from jthread to Thread*. (_Jv_JVMTI_ResumeThread): Likewise. (_Jv_JVMTI_InterruptThread): Likewise. (_Jv_JVMTI_SetEventNotificationMode): Likewise. * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpClassPrepareCB): Likewise. (jdwpThreadEndCB): Likewise. (jdwpThreadStartCB): Likewise. (jdwpVMInitCB): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121296 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cckseitz2007-01-271-14/+98
| | | | | | | | | | | | | | (getAllClassMethods): Move error handling to ... (throw_jvmti_error): ... here. (jdwpClassPrepareCB): New function. (jdwpThreadEndCB): New function. (jdwpThreadStartCB): New function. (jdwpVMDeathCB): New function. (jdwpVMInitCB): Define and enable callbacks for ClassPrepare, ThreadEnd, ThreadStart, and VMDeath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121233 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jvmti-int.h (_Jv_GetJDWP_JVMTIEnv): Declare.kseitz2007-01-251-0/+6
| | | | | | | | | | | * gnu/classpath/jdwp/natVMVirtualMachine.cc (_Jv_GetJDWP_JVMTIEnv): New function. * gnu/classpath/jdwp/natVMMethod.cc (getName): Implement. (getSignature): Implement. (getModifiers): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121185 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cckseitz2007-01-241-2/+32
| | | | | | | (getAllClassMethods): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121142 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cckseitz2007-01-231-2/+8
| | | | | | | (getClassMethod): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121078 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cc: Mark unused parameterskseitz2007-01-191-23/+29
| | | | | | | in methods and reformat. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120971 138bc75d-0d04-0410-961f-82ee72b054a4
* From Macro Trudel <mtrudel@gmx.ch>:kseitz2007-01-191-2/+2
| | | | | | | | * gnu/classpath/jdwp/natVMVirtualMachine.cc (jdwpVMInitCB): Use JNICALL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120946 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cc (DEFINE_CALLBACK):kseitz2007-01-161-0/+25
| | | | | | | | | | New macro. (ENABLE_EVENT): New macro. (initialize): Define and enable JVMTI VM_INIT callback. (jdwpVMInitCB): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120833 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/natVMVirtualMachine.cc (suspendThread): Usekseitz2007-01-151-10/+8
| | | | | | | | java.lang.StringBuilder instead of java.lang.StringBuffer. (resumeThread): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120805 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/VMVirtualMachine.javakseitz2006-09-251-1/+96
| | | | | | | | | | | | (_jdwp_suspend_counts): New private variable. * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize): Initialize _jdwp_suspend_counts. (suspendThread): Implement. (resumeThread): Implement. (getSuspendCount): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117196 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/VMVirtualMachine.javakseitz2006-08-231-0/+12
| | | | | | | | | (initialize): Declare. * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize): Get and save JVMTI environment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116357 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/classpath/jdwp/VMFrame.java: Update to Classpath 0.91.kseitz2006-08-041-0/+240
* gnu/classpath/jdwp/VMIdManager.java: Likewise. * gnu/classpath/jdwp/VMMethod.java: Likewise. * gnu/classpath/jdwp/VMVirtualMachine: Likewise. * gnu/classpath/jdwp/natVMFrame.java: New file. * gnu/classpath/jdwp/natVMMethod.java: New file. * gnu/classpath/jdwp/natVMVirtualMachine.java: New file. * Makefile.am (nat_source_files): Add new filles. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115934 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud