]> git.sur5r.net Git - openocd/commitdiff
step command now propagates error
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 2 Nov 2008 20:55:07 +0000 (20:55 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 2 Nov 2008 20:55:07 +0000 (20:55 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1123 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/target.c

index 6f086b3e44ff60803e3da50f7603e20a347a2a35..175cb478aefd85a4dd653128fdb40bff84553037 100644 (file)
@@ -1740,10 +1740,10 @@ int handle_step_command(struct command_context_s *cmd_ctx, char *cmd, char **arg
        LOG_DEBUG("-");
 
        if (argc == 0)
-               target->type->step(target, 1, 0, 1); /* current pc, addr = 0, handle breakpoints */
+               return target->type->step(target, 1, 0, 1); /* current pc, addr = 0, handle breakpoints */
 
        if (argc == 1)
-               target->type->step(target, 0, strtoul(args[0], NULL, 0), 1); /* addr = args[0], handle breakpoints */
+               return target->type->step(target, 0, strtoul(args[0], NULL, 0), 1); /* addr = args[0], handle breakpoints */
 
        return ERROR_OK;
 }
@@ -3887,7 +3887,7 @@ jim_target( Jim_Interp *interp, int argc, Jim_Obj *const *argv )
                 * It appears that there are 2 old syntaxes:
                 *
                 * target <typename> <endian> <chain position> <variant>
-                * 
+                *
                 * and
                 *
                 * target <typename> <endian> <reset mode> <chain position> <variant>