Commit bed9c62f authored by zwelch's avatar zwelch
Browse files

Oleksandr Tymoshenko <gonzo@bluezbox.com>:

Resume command works only if resume address is provided.


git-svn-id: svn://svn.berlios.de/openocd/trunk@2348 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 2004f2be
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment