aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-05-25 13:13:22 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-05-25 13:14:31 -0700
commitf0969e7c71437dce8331b727baf550a6ef0a24c3 (patch)
treed029b36b3f5169c6fe9f8b81c5884421d7b8070f
parentab77c5d7921f779d77c72212937aa8544dbfc1b4 (diff)
downloadriscv-openocd-f0969e7c71437dce8331b727baf550a6ef0a24c3.zip
riscv-openocd-f0969e7c71437dce8331b727baf550a6ef0a24c3.tar.gz
riscv-openocd-f0969e7c71437dce8331b727baf550a6ef0a24c3.tar.bz2
Pass EVENT_RESUMED in the RTOS
I missed this event. It appears to do nothing.
-rw-r--r--src/rtos/riscv_debug.c5
1 files 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;
}