From f0969e7c71437dce8331b727baf550a6ef0a24c3 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Thu, 25 May 2017 13:13:22 -0700 Subject: Pass EVENT_RESUMED in the RTOS I missed this event. It appears to do nothing. --- src/rtos/riscv_debug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rtos/riscv_debug.c b/src/rtos/riscv_debug.c index 0be869e..0402eb9 100644 --- a/src/rtos/riscv_debug.c +++ b/src/rtos/riscv_debug.c @@ -246,11 +246,12 @@ static int riscv_gdb_v_packet(struct connection *connection, const char *packet, } if (strcmp(packet_stttrr, "vCont;c") == 0) { - target->state = TARGET_RUNNING; - gdb_set_frontend_state_running(connection); target_call_event_callbacks(target, TARGET_EVENT_GDB_START); target_call_event_callbacks(target, TARGET_EVENT_RESUME_START); riscv_resume_all_harts(target); + target->state = TARGET_RUNNING; + gdb_set_frontend_state_running(connection); + target_call_event_callbacks(target, TARGET_EVENT_RESUMED); target_call_event_callbacks(target, TARGET_EVENT_RESUME_END); return JIM_OK; } -- cgit v1.1