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
This commit is contained in:
parent
2004f2be41
commit
bed9c62f9e
|
@ -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)
|
static int handle_resume_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
|
||||||
{
|
{
|
||||||
|
int current = 1;
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
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);
|
int retval = parse_u32(args[0], &addr);
|
||||||
if (ERROR_OK != retval)
|
if (ERROR_OK != retval)
|
||||||
return 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)
|
static int handle_step_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
|
||||||
|
|
Loading…
Reference in New Issue