Nicolas Pitre <nico@cam.org> fix "halt 0" to only halt and not to poll/wait afterwards. This follows the intention in the docs.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1398 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
a8bd749d4e
commit
86c0f4cafc
|
@ -1759,6 +1759,16 @@ int handle_halt_command(struct command_context_s *cmd_ctx, char *cmd, char **arg
|
|||
return retval;
|
||||
}
|
||||
|
||||
if (argc == 1)
|
||||
{
|
||||
int wait;
|
||||
char *end;
|
||||
|
||||
wait = strtoul(args[0], &end, 0);
|
||||
if (!*end && !wait)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
return handle_wait_halt_command(cmd_ctx, cmd, args, argc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue