Esempio n. 1
0
 public void createRemoveBreakpointRequest(GDBRequestManager requestManager) {
   requestManager.createRequest(
       new RemoveBreakpointRequestor(myInternalGDBNumber) {
         public void onRequestFulfilled(
             ResultAnswer answer, List<StreamAnswer> receivedStreamAnswers) {
           myAdded = false;
           myInternalGDBNumber = -1;
         }
       });
 }
Esempio n. 2
0
 public void createBreakpointRequest(GDBRequestManager requestManager) {
   requestManager.createRequest(
       new BreakpointRequestor(getLocation().getFileName(), getLocation().getLineIndexInFile()) {
         public void onRequestFulfilled(
             ResultAnswer answer, List<StreamAnswer> receivedStreamAnswers) {
           myAdded = true;
           RecordValue bkptInfo =
               (RecordValue) answer.getResults().getPropertyValue(GDBBreakpoint.BKPT);
           StringValue numberValue = (StringValue) bkptInfo.getPropertyValue(GDBBreakpoint.NUMBER);
           int number = Integer.parseInt(numberValue.getString());
           myInternalGDBNumber = number;
         }
       });
 }