rem: while (true) { status_t result = write_port(teamDebugInfo->nub_port, messageCode, message, messageSize); if (result == B_OK) break; if (result != B_INTERRUPTED) return result; }  if (!reply) return B_OK;   while (true) { int32 code; ssize_t bytesRead = read_port(teamDebugInfo->reply_port, &code, reply, replySize); if (bytesRead > 0) return B_OK; if (bytesRead != B_INTERRUPTED) return bytesRead; }
add: return send_debug_message(&teamDebugInfo->context, messageCode, message, messageSize, reply, replySize);
context: haiku_send_debugger_message(team_debug_info *teamDebugInfo, int32 messageCode,	const void *message, int32 messageSize, void *reply, int32 replySize){	// send message	while (true) {		status_t result = write_port(teamDebugInfo->nub_port, messageCode,			message, messageSize);		if (result == B_OK)			break;		if (result != B_INTERRUPTED)			return result;	}	if (!reply)		return B_OK;	// read reply	while (true) {		int32 code;		ssize_t bytesRead = read_port(teamDebugInfo->reply_port, &code,			reply, replySize);		if (bytesRead > 0)			return B_OK;		if (bytesRead != B_INTERRUPTED)			return bytesRead;	}}