9 #define KD_DBG if (false)
91 KD_DBG eprintf(
"invalid leader %08x, trying to recover\n", pkt.leader);
98 if (sig[0] ==
'0' || sig[0] ==
'i') {
100 if (strncmp(sig,
"000", 3) && strncmp(sig,
"iii", 3)) {
103 memcpy(&pkt, sig,
sizeof(sig));
119 buf =
malloc(
sizeof(kd_packet_t) + pkt.length);
140 if (trailer != 0xAA) {
149 *
p = (kd_packet_t *)
buf;
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec req
RZ_API void Ht_() free(HtName_(Ht) *ht)
ut32 kd_data_checksum(const ut8 *buf, const ut64 buf_len)
int kd_send_ctrl_packet(io_desc_t *desc, const ut32 type, const ut32 id)
int kd_send_data_packet(io_desc_t *desc, const ut32 type, const ut32 id, const ut8 *req, const int req_len, const ut8 *buf, const ut32 buf_len)
int kd_read_packet(io_desc_t *desc, kd_packet_t **p)
bool kd_packet_is_valid(const kd_packet_t *p)
int kd_packet_is_ack(const kd_packet_t *p)
@ KD_PACKET_TYPE_ACKNOWLEDGE
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * malloc(size_t size)
#define RZ_LOG_DEBUG(fmtstr,...)
int iob_read(io_desc_t *desc, uint8_t *buf, const uint32_t buf_len)
int iob_write(io_desc_t *desc, const uint8_t *buf, const uint32_t buf_len)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()