aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-09-12 10:53:10 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-09-12 10:53:10 +0000
commitd28931c2d41e9f75f6f596955c3f75595c902e09 (patch)
treeb50736cfd7bd06c8dc204cc97ccf5dedfa3065f6
parent9b6853bc4c8957dd3ebc5b69846cef09306d3155 (diff)
downloadriscv-openocd-d28931c2d41e9f75f6f596955c3f75595c902e09.zip
riscv-openocd-d28931c2d41e9f75f6f596955c3f75595c902e09.tar.gz
riscv-openocd-d28931c2d41e9f75f6f596955c3f75595c902e09.tar.bz2
follow up to keep_alive() fix. process target events before returning from reset procedure.
git-svn-id: svn://svn.berlios.de/openocd/trunk@986 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/target/target.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/target/target.c b/src/target/target.c
index aef58d3..a096045 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -430,6 +430,10 @@ static int NEW_target_process_reset(struct command_context_s *cmd_ctx, enum targ
sprintf( buf, "ocd_process_reset %s", n->name );
Jim_Eval( interp, buf );
+
+ /* We want any events to be processed before the prompt */
+ target_call_timer_callbacks_now();
+
return ERROR_OK;
}