* handle breakpoints, not debugging */
u32 addr = 0;
if (argc == 1)
- addr = strtoul(args[0], NULL, 0);
+ {
+ int retval = parse_u32(args[0], &addr);
+ if (ERROR_OK != retval)
+ return retval;
+ }
return target_resume(target, 0, addr, 1, 0);
}
* handle breakpoints, debugging */
u32 addr = 0;
if (argc == 1)
- addr = strtoul(args[0], NULL, 0);
+ {
+ int retval = parse_u32(args[0], &addr);
+ if (ERROR_OK != retval)
+ return retval;
+ }
target_t *target = get_current_target(cmd_ctx);
return target->type->step(target, 0, addr, 1);