public EventProcessor(DebugProtocolService service)
            {
                Contract.Requires(service != null);
                _service = service;

                _eventCallbacks = new jvmtiEventCallbacks()
                {
                    VMInit = HandleVMInit,
                    VMDeath = HandleVMDeath,
                    ThreadStart = HandleThreadStart,
                    ThreadEnd = HandleThreadEnd,
                    ClassFileLoadHook = HandleClassFileLoadHook,
                    ClassLoad = HandleClassLoad,
                    ClassPrepare = HandleClassPrepare,
                    VMStart = HandleVMStart,
                    Exception = HandleException,
                    ExceptionCatch = HandleExceptionCatch,
                    SingleStep = HandleSingleStep,
                    FramePop = HandleFramePop,
                    Breakpoint = HandleBreakpoint,
                    FieldAccess = HandleFieldAccess,
                    FieldModification = HandleFieldModification,
                    MethodEntry = HandleMethodEntry,
                    MethodExit = HandleMethodExit,
                    NativeMethodBind = HandleNativeMethodBind,
                    CompiledMethodLoad = HandleCompiledMethodLoad,
                    CompiledMethodUnload = HandleCompiledMethodUnload,
                    DynamicCodeGenerated = HandleDynamicCodeGenerated,
                    DataDumpRequest = HandleDataDumpRequest,
                    MonitorWait = HandleMonitorWait,
                    MonitorWaited = HandleMonitorWaited,
                    MonitorContendedEnter = HandleMonitorContendedEnter,
                    MonitorContendedEntered = HandleMonitorContendedEntered,
                    ResourceExhausted = HandleResourceExhausted,
                    GarbageCollectionStart = HandleGarbageCollectionStart,
                    GarbageCollectionFinish = HandleGarbageCollectionFinish,
                    ObjectFree = HandleObjectFree,
                    VMObjectAlloc = HandleVMObjectAlloc
                };
            }
Esempio n. 2
0
 internal jvmtiError SetEventCallbacks(jvmtiEventCallbacks callbacks)
 {
     return(RawInterface.SetEventCallbacks(this, ref callbacks, Marshal.SizeOf(callbacks)));
 }
Esempio n. 3
0
 internal jvmtiError SetEventCallbacks(jvmtiEventCallbacks callbacks)
 {
     return RawInterface.SetEventCallbacks(this, ref callbacks, Marshal.SizeOf(callbacks));
 }