diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-02 20:55:07 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-02 20:55:07 +0000 |
commit | 7b78e591920feeea23a853a8b477d5c2dd839323 (patch) | |
tree | edda37c7403370e01f9c360ea20ce202ff4b4be6 | |
parent | d0b1e6ebaa10071db106309dbb8273f8af730ed4 (diff) | |
download | openocd_libswd-7b78e591920feeea23a853a8b477d5c2dd839323.tar.gz openocd_libswd-7b78e591920feeea23a853a8b477d5c2dd839323.tar.bz2 openocd_libswd-7b78e591920feeea23a853a8b477d5c2dd839323.tar.xz openocd_libswd-7b78e591920feeea23a853a8b477d5c2dd839323.zip |
step command now propagates error
git-svn-id: svn://svn.berlios.de/openocd/trunk@1123 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/target/target.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/target.c b/src/target/target.c index 6f086b3e..175cb478 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -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> |