]> git.sur5r.net Git - openocd/commitdiff
follow up to keep_alive() fix. process target events before returning from reset...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 12 Sep 2008 10:53:10 +0000 (10:53 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 12 Sep 2008 10:53:10 +0000 (10:53 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@986 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/target.c

index aef58d3e8ce597d07cbc801da044c3d47a14fe20..a096045c186d80b58303271cfe47488d65503c2c 100644 (file)
@@ -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;
 }