Lines Matching refs:ctx
64 HCtxJdwp ctx = nullptr;
65 if ((ctx = new ContextJdwp()) == nullptr) {
68 ctx->isDebug = 0;
69 ctx->thisClass = this;
70 ctx->pipe.data = ctx;
72 return ctx;
76 void HdcJdwp::FreeContext(HCtxJdwp ctx)
78 if (ctx->finish) {
81 ctx->finish = true;
82 WRITE_LOG(LOG_INFO, "FreeContext for targetPID :%d", ctx->pid);
84 AdminContext(OP_REMOVE, ctx->pid, nullptr);
101 Base::IdleUvTask(loop, ctx, funcReqClose);
376 HCtxJdwp ctx = (HCtxJdwp)req->data;
378 WRITE_LOG(LOG_DEBUG, "SendCallbackJdwpNewFD successful %d, active jdwp forward", ctx->pid);
380 WRITE_LOG(LOG_WARN, "SendCallbackJdwpNewFD failed %d", ctx->pid);
392 HCtxJdwp ctx = (HCtxJdwp)AdminContext(OP_QUERY, targetPID, nullptr);
393 if (!ctx) {
396 ctx->dummy = static_cast<uint8_t>('!');
397 if (uv_tcp_init(loop, &ctx->jvmTCP)) {
400 if (uv_tcp_open(&ctx->jvmTCP, fd)) {
405 if (Base::SendToStreamEx((uv_stream_t *)&ctx->pipe, (uint8_t *)&ctx->dummy, 1, (uv_stream_t *)&ctx->jvmTCP,
406 (void *)SendCallbackJdwpNewFD, (const void *)ctx) < 0) {
428 HCtxJdwp ctx = (HCtxJdwp)AdminContext(OP_QUERY, pid, nullptr);
429 if (!ctx) {
444 uv_stream_t *stream = (uv_stream_t *)&ctx->pipe;
492 HCtxJdwp ctx = (HCtxJdwp)AdminContext(OP_QUERY, targetPID, nullptr);
493 return ctx != nullptr;
673 HCtxJdwp ctx = static_cast<HCtxJdwp>(thisClass->AdminContext(OP_QUERY, targetPID, nullptr));
674 if (ctx != nullptr) {