From bed9c62f9ecf47e1633408efc31bd6c7aefe204b Mon Sep 17 00:00:00 2001 From: zwelch Date: Sun, 21 Jun 2009 04:58:53 +0000 Subject: [PATCH] Oleksandr Tymoshenko : Resume command works only if resume address is provided. git-svn-id: svn://svn.berlios.de/openocd/trunk@2348 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/target.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/target/target.c b/src/target/target.c index e059861d..b7917cad 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1996,6 +1996,7 @@ static int handle_reset_command(struct command_context_s *cmd_ctx, char *cmd, ch static int handle_resume_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { + int current = 1; if (argc > 1) return ERROR_COMMAND_SYNTAX_ERROR; @@ -2011,9 +2012,10 @@ static int handle_resume_command(struct command_context_s *cmd_ctx, char *cmd, c int retval = parse_u32(args[0], &addr); if (ERROR_OK != retval) return retval; + current = 0; } - return target_resume(target, 0, addr, 1, 0); + return target_resume(target, current, addr, 1, 0); } static int handle_step_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) -- 2.39.5