aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 04:58:53 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 04:58:53 +0000
commitbed9c62f9ecf47e1633408efc31bd6c7aefe204b (patch)
treef07e1cb1245f8d9731ea0c15b837fa0da6d7a9e0
parent2004f2be410db6510ef491144115c528cd5f4ef1 (diff)
downloadriscv-openocd-bed9c62f9ecf47e1633408efc31bd6c7aefe204b.zip
riscv-openocd-bed9c62f9ecf47e1633408efc31bd6c7aefe204b.tar.gz
riscv-openocd-bed9c62f9ecf47e1633408efc31bd6c7aefe204b.tar.bz2
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
-rw-r--r--src/target/target.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c
index e059861..b7917ca 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)