Extended some packet handling
This commit is contained in:
parent
663a9b8c09
commit
f57f9a4e60
|
@ -124,7 +124,12 @@ static int riscv_gdb_thread_packet(struct connection *connection, const char *pa
|
|||
return ERROR_OK;
|
||||
}
|
||||
|
||||
if (strcmp(packet, "qC") == 0) {
|
||||
if (strncmp(packet, "qTStatus", 8) == 0) {
|
||||
gdb_put_packet(connection, "T0", strlen("T0"));
|
||||
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));
|
||||
|
@ -250,6 +255,7 @@ static int riscv_gdb_v_packet(struct connection *connection, const char *packet,
|
|||
if (strcmp(packet_stttrr, "vCont;c") == 0) {
|
||||
target_call_event_callbacks(target, TARGET_EVENT_GDB_START);
|
||||
target_call_event_callbacks(target, TARGET_EVENT_RESUME_START);
|
||||
riscv_set_all_rtos_harts(target);
|
||||
riscv_openocd_resume(target, 1, 0, 0, 0);
|
||||
target->state = TARGET_RUNNING;
|
||||
gdb_set_frontend_state_running(connection);
|
||||
|
|
Loading…
Reference in New Issue