target: fix missing semihosting return path

bug nicely caught by clang.

Change-Id: I7abf0fdd76666fb3eb1c83e3edfd01e0da485ffe
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/359
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
__archive__
Spencer Oliver 2012-01-09 21:35:19 +00:00
parent 80df024c80
commit cd22bedf6f
1 changed files with 1 additions and 0 deletions

View File

@ -966,6 +966,7 @@ COMMAND_HANDLER(handle_arm_semihosting_command)
if (!arm->setup_semihosting) if (!arm->setup_semihosting)
{ {
command_print(CMD_CTX, "semihosting not supported for current target"); command_print(CMD_CTX, "semihosting not supported for current target");
return ERROR_FAIL;
} }
if (CMD_ARGC > 0) if (CMD_ARGC > 0)