X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Frtos%2Frtos.c;h=73ab840e68e7557f7d2e61a10dc4a5441e0d8538;hp=957aeae2b5d2aa2dbbeedcd291c3f42a722e5a17;hb=cf8a3c3d7075abad3c88cd604f8add4d06898abc;hpb=3d62c3df6ddb09f1485c25d665e248856989d180 diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 957aeae2b5..73ab840e68 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -34,6 +34,7 @@ extern struct rtos_type ThreadX_rtos; extern struct rtos_type eCos_rtos; extern struct rtos_type Linux_os; extern struct rtos_type ChibiOS_rtos; +extern struct rtos_type embKernel_rtos; static struct rtos_type *rtos_types[] = { &ThreadX_rtos, @@ -41,6 +42,7 @@ static struct rtos_type *rtos_types[] = { &eCos_rtos, &Linux_os, &ChibiOS_rtos, + &embKernel_rtos, NULL }; @@ -306,7 +308,7 @@ int rtos_thread_packet(struct connection *connection, char *packet, int packet_s (size_t) (tmp_str_ptr - tmp_str)); char *hex_str = (char *) malloc(strlen(tmp_str) * 2 + 1); - int pkt_len = unhexify(hex_str, tmp_str, strlen(tmp_str) * 2 + 1); + int pkt_len = hexify(hex_str, tmp_str, 0, strlen(tmp_str) * 2 + 1); gdb_put_packet(connection, hex_str, pkt_len); free(hex_str);