Home | History | Annotate | Download | only in jdwpspy

Lines Matching refs:vm

4  * JDWP spy.  This is a rearranged version of the JDWP code from the VM.
51 /* connect here to contact VM */
56 Peer vm;
233 netState->dbg.sock = netState->vm.sock = -1;
236 strcpy(netState->vm.label, "V");
280 * Do the hostname lookup for the VM.
313 int vmSock = netState->vm.sock;
317 netState->listenSock = netState->dbg.sock = netState->vm.sock = -1;
395 * Close the connections to the debugger and VM.
406 if (netState->vm.sock >= 0) {
407 fprintf(stderr, "+++ closing connection to vm\n");
408 close(netState->vm.sock);
409 netState->vm.sock = -1;
591 vm.sock >= 0);
593 while (!haveFullPacket(&netState->dbg) && !haveFullPacket(&netState->vm)) {
598 highFd = (netState->dbg.sock > netState->vm.sock) ?
599 netState->dbg.sock+1 : netState->vm.sock+1;
602 FD_SET(netState->vm.sock, &readfds);
640 if (FD_ISSET(netState->vm.sock, &readfds)) {
641 cc = read(netState->vm.sock,
642 netState->vm.inputBuffer + netState->vm.inputCount,
643 sizeof(netState->vm.inputBuffer) - netState->vm.inputCount);
649 fprintf(stderr, "+++ vm read failed: %s\n", strerror(errno));
653 if (sizeof(netState->vm.inputBuffer) ==
654 netState->vm.inputCount)
655 fprintf(stderr, "+++ vm sent huge message\n");
657 fprintf(stderr, "+++ vm disconnected\n");
661 /*printf("*** %d bytes from vm\n", cc);*/
662 netState->vm.inputCount += cc;
666 if (!handleIncoming(&netState->dbg, &netState->vm))
668 if (!handleIncoming(&netState->vm, &netState->dbg))
679 * Connect to the VM.
700 fprintf(stderr, "+++ connected to VM %s:%u\n",
703 netState->vm.sock = sock;
704 netState->vm.awaitingHandshake = true;
705 netState->vm.inputCount = 0;
707 setNoDelay(netState->vm.sock);
720 * open a connection to the VM. If one side or the other goes away, we