X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Frtos%2Frtos.c;h=8591007c202b8e240c7247c04b77eebffdc08150;hp=74e8724e3ffe6e85110ee99c4a65061bc66a1263;hb=3d2305f2e6a55912d5851c0dbed886d913a4d015;hpb=1c1771ef6c4ed8d913146f943a64c0cf16850b59 diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 74e8724e3f..8591007c20 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -490,6 +490,7 @@ int gdb_thread_packet(struct connection *connection, char *packet, int packet_si } else { gdb_put_packet(connection, "E01", 3); // thread not found } + return ERROR_OK; } else if ( packet[0] == 'H') // Set current thread ( 'c' for step and continue, 'g' for all other operations ) { @@ -498,6 +499,7 @@ int gdb_thread_packet(struct connection *connection, char *packet, int packet_si sscanf(packet, "Hg%16" SCNx64, ¤t_threadid); } gdb_put_packet(connection, "OK", 2); + return ERROR_OK; } return GDB_THREAD_PACKET_NOT_CONSUMED;