From: oharboe at B. <oh...@ma...> - 2009-03-05 07:55:38
|
Author: oharboe Date: 2009-03-05 07:55:35 +0100 (Thu, 05 Mar 2009) New Revision: 1398 Modified: trunk/src/target/target.c Log: Nicolas Pitre <ni...@ca...> fix "halt 0" to only halt and not to poll/wait afterwards. This follows the intention in the docs. Modified: trunk/src/target/target.c =================================================================== --- trunk/src/target/target.c 2009-03-04 21:28:50 UTC (rev 1397) +++ trunk/src/target/target.c 2009-03-05 06:55:35 UTC (rev 1398) @@ -1759,6 +1759,16 @@ 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); } |