X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/ccb6ffb997835073a650faeac61b2fcdf2f74503..refs/tags/hexrel-6.8.1:/avr/command.c diff --git a/avr/command.c b/avr/command.c index 5499b9d..cd2ee39 100644 --- a/avr/command.c +++ b/avr/command.c @@ -11,17 +11,21 @@ * Command Processor Table */ +#include "command.h" #include "common.h" #include #include #include +#include #include "config.h" #include "print-utils.h" #include "con-utils.h" #include "env.h" #include "debug.h" -#include "command.h" + + +jmp_buf cmd_jbuf; static void print_usage_line(const FLASH char *name, int width, @@ -521,6 +525,9 @@ command_ret_t cmd_process(int flag, int argc, char * const argv[], } #endif + if (setjmp(cmd_jbuf) != 0) + return CMD_RET_FAILURE; + /* If OK so far, then do the command */ if (!rc) { rc = cmd_call(cmdtp, flag, argc, argv);