Home | History | Annotate | Download | only in jdwpspy

Lines Matching defs:vm

4  * JDWP spy.  This is a rearranged version of the JDWP code from the VM.
54 /* connect here to contact VM */
59 Peer vm;
234 netState->dbg.sock = netState->vm.sock = -1;
237 strcpy(netState->vm.label, "V");
281 * Do the hostname lookup for the VM.
314 int vmSock = netState->vm.sock;
318 netState->listenSock = netState->dbg.sock = netState->vm.sock = -1;
396 * Close the connections to the debugger and VM.
407 if (netState->vm.sock >= 0) {
408 fprintf(stderr, "+++ closing connection to vm\n");
409 close(netState->vm.sock);
410 netState->vm.sock = -1;
594 assert(netState->vm.sock >= 0);
596 while (!haveFullPacket(&netState->dbg) && !haveFullPacket(&netState->vm)) {
601 highFd = (netState->dbg.sock > netState->vm.sock) ?
602 netState->dbg.sock+1 : netState->vm.sock+1;
605 FD_SET(netState->vm.sock, &readfds);
643 if (FD_ISSET(netState->vm.sock, &readfds)) {
644 cc = read(netState->vm.sock,
645 netState->vm.inputBuffer + netState->vm.inputCount,
646 sizeof(netState->vm.inputBuffer) - netState->vm.inputCount);
652 fprintf(stderr, "+++ vm read failed: %s\n", strerror(errno));
656 if (sizeof(netState->vm.inputBuffer) ==
657 netState->vm.inputCount)
658 fprintf(stderr, "+++ vm sent huge message\n");
660 fprintf(stderr, "+++ vm disconnected\n");
664 /*printf("*** %d bytes from vm\n", cc);*/
665 netState->vm.inputCount += cc;
669 if (!handleIncoming(&netState->dbg, &netState->vm))
671 if (!handleIncoming(&netState->vm, &netState->dbg))
682 * Connect to the VM.
703 fprintf(stderr, "+++ connected to VM %s:%u\n",
706 netState->vm.sock = sock;
707 netState->vm.awaitingHandshake = true;
708 netState->vm.inputCount = 0;
710 setNoDelay(netState->vm.sock);
723 * open a connection to the VM. If one side or the other goes away, we