Extended some packet handling

This commit is contained in:
cgsfv 2018-10-19 13:12:39 +02:00
parent 663a9b8c09
commit f57f9a4e60
1 changed files with 7 additions and 1 deletions

View File

@ -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);