< prev index next >

src/jdk.jdwp.agent/share/native/libjdwp/standardHandlers.c

Print this page

134     eventHelper_recordEvent(evinfo, node->handlerID, node->suspendPolicy,
135                             eventBag);
136 }
137 
138 HandlerFunction
139 standardHandlers_defaultHandler(EventIndex ei)
140 {
141     switch (ei) {
142         case EI_BREAKPOINT:
143         case EI_EXCEPTION:
144         case EI_FIELD_ACCESS:
145         case EI_FIELD_MODIFICATION:
146         case EI_SINGLE_STEP:
147         case EI_THREAD_START:
148         case EI_THREAD_END:
149         case EI_VM_DEATH:
150         case EI_MONITOR_CONTENDED_ENTER:
151         case EI_MONITOR_CONTENDED_ENTERED:
152         case EI_MONITOR_WAIT:
153         case EI_MONITOR_WAITED:


154             return &genericHandler;
155 
156         case EI_CLASS_PREPARE:
157             return &handleClassPrepare;
158 
159         case EI_GC_FINISH:
160             return &handleGarbageCollectionFinish;
161 
162         case EI_METHOD_ENTRY:
163         case EI_METHOD_EXIT:
164             return &handleFrameEvent;
165 
166         default:
167             /* This NULL will trigger a AGENT_ERROR_INVALID_EVENT_TYPE */
168             return NULL;
169     }
170 }
171 
172 void
173 standardHandlers_onConnect(void)

134     eventHelper_recordEvent(evinfo, node->handlerID, node->suspendPolicy,
135                             eventBag);
136 }
137 
138 HandlerFunction
139 standardHandlers_defaultHandler(EventIndex ei)
140 {
141     switch (ei) {
142         case EI_BREAKPOINT:
143         case EI_EXCEPTION:
144         case EI_FIELD_ACCESS:
145         case EI_FIELD_MODIFICATION:
146         case EI_SINGLE_STEP:
147         case EI_THREAD_START:
148         case EI_THREAD_END:
149         case EI_VM_DEATH:
150         case EI_MONITOR_CONTENDED_ENTER:
151         case EI_MONITOR_CONTENDED_ENTERED:
152         case EI_MONITOR_WAIT:
153         case EI_MONITOR_WAITED:
154         case EI_VIRTUAL_THREAD_START: /* vthread fixme: assert? */
155         case EI_VIRTUAL_THREAD_END:
156             return &genericHandler;
157 
158         case EI_CLASS_PREPARE:
159             return &handleClassPrepare;
160 
161         case EI_GC_FINISH:
162             return &handleGarbageCollectionFinish;
163 
164         case EI_METHOD_ENTRY:
165         case EI_METHOD_EXIT:
166             return &handleFrameEvent;
167 
168         default:
169             /* This NULL will trigger a AGENT_ERROR_INVALID_EVENT_TYPE */
170             return NULL;
171     }
172 }
173 
174 void
175 standardHandlers_onConnect(void)
< prev index next >