< prev index next >

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

Print this page

190                 if ( (serror = inStream_error(in)) != JDWP_ERROR(NONE) )
191                     break;
192                 depth = inStream_readInt(in);
193                 if ( (serror = inStream_error(in)) != JDWP_ERROR(NONE) )
194                     break;
195                 serror = map2jdwpError(
196                       eventFilter_setStepFilter(node, i, thread, size, depth));
197                 break;
198             }
199             case JDWP_REQUEST_MODIFIER(SourceNameMatch): {
200                 char *sourceNamePattern;
201                 sourceNamePattern = inStream_readString(in);
202                 if ( (serror = inStream_error(in)) != JDWP_ERROR(NONE) ) {
203                     break;
204                 }
205                 serror = map2jdwpError(
206                         eventFilter_setSourceNameMatchFilter(node, i, sourceNamePattern));
207                 break;
208             }
209 




210             default:
211                 serror = JDWP_ERROR(ILLEGAL_ARGUMENT);
212                 break;
213         }
214         if ( serror != JDWP_ERROR(NONE) )
215             break;
216     }
217     return serror;
218 }
219 
220 /**
221  * This is the back-end implementation for enabling
222  * (what are at the JDI level) EventRequests.
223  *
224  * Allocate the event request handler (eventHandler).
225  * Add any filters (explicit or implicit).
226  * Install the handler.
227  * Return the handlerID which is used to map subsequent
228  * events to the EventRequest that created it.
229  */

190                 if ( (serror = inStream_error(in)) != JDWP_ERROR(NONE) )
191                     break;
192                 depth = inStream_readInt(in);
193                 if ( (serror = inStream_error(in)) != JDWP_ERROR(NONE) )
194                     break;
195                 serror = map2jdwpError(
196                       eventFilter_setStepFilter(node, i, thread, size, depth));
197                 break;
198             }
199             case JDWP_REQUEST_MODIFIER(SourceNameMatch): {
200                 char *sourceNamePattern;
201                 sourceNamePattern = inStream_readString(in);
202                 if ( (serror = inStream_error(in)) != JDWP_ERROR(NONE) ) {
203                     break;
204                 }
205                 serror = map2jdwpError(
206                         eventFilter_setSourceNameMatchFilter(node, i, sourceNamePattern));
207                 break;
208             }
209 
210             case JDWP_REQUEST_MODIFIER(PlatformThreadsOnly):
211                 serror = map2jdwpError(eventFilter_setPlatformThreadsOnlyFilter(node, i));
212                 break;
213 
214             default:
215                 serror = JDWP_ERROR(ILLEGAL_ARGUMENT);
216                 break;
217         }
218         if ( serror != JDWP_ERROR(NONE) )
219             break;
220     }
221     return serror;
222 }
223 
224 /**
225  * This is the back-end implementation for enabling
226  * (what are at the JDI level) EventRequests.
227  *
228  * Allocate the event request handler (eventHandler).
229  * Add any filters (explicit or implicit).
230  * Install the handler.
231  * Return the handlerID which is used to map subsequent
232  * events to the EventRequest that created it.
233  */
< prev index next >