public void reply()

in core/src/main/java/com/jetbrains/sa/jdwp/JDWP.java [2159:2195]


            public void reply(VirtualMachineImpl vm, PacketStream answer, PacketStream command) {
                ReferenceTypeImpl referenceType = command.readReferenceType();
                MethodImpl method = referenceType.methodById(command.readMethodRef());

                if (method.isNative()) {
                    answer.pkt.errorCode = Error.NATIVE_METHOD;
                    return;
                }

                List<LocationImpl> locations = Collections.emptyList();
                try {
                    locations = method.allLineLocations();
                } catch (AbsentInformationException ignored) {
                }
                sun.jvm.hotspot.oops.Method ref = method.ref();
                long start = 0;
                long end = ref.getCodeSize();
                if (end == 0) {
                    start = -1;
                }
                //start = answer.readLong();
                answer.writeLong(start);
                //end = answer.readLong();
                answer.writeLong(end);
//                //int linesCount = answer.readInt();
                answer.writeInt(locations.size());
                for (LocationImpl location : locations) {
                    //lineCodeIndex = answer.readLong();
                    answer.writeLong(location.codeIndex());
                    //lineNumber = answer.readInt();
                    answer.writeInt(location.lineNumber());
                }
                //lines = new LineInfo[linesCount];
                //for (int i = 0; i < linesCount; i++) {;
                //lines[i] = new LineInfo(vm, ps);
                //}
            }