Handle the qC packet (#292)
* Handle the qC packet GDB sends the qC packet to find out which thread OpenOCD is on * Correct format string for qC packetriscv-compliance
parent
f54eaf0b8e
commit
8ede238449
|
@ -124,6 +124,13 @@ static int riscv_gdb_thread_packet(struct connection *connection, const char *pa
|
|||
return ERROR_OK;
|
||||
}
|
||||
|
||||
if (strncmp(packet, "qC", 2) == 0) {
|
||||
char rep_str[32];
|
||||
snprintf(rep_str, 32, "QC%" PRIx64, rtos->current_threadid);
|
||||
gdb_put_packet(connection, rep_str, strlen(rep_str));
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
return GDB_THREAD_PACKET_NOT_CONSUMED;
|
||||
|
||||
case 'Q':
|
||||
|
|
Loading…
Reference in New Issue