openocd/src/helper
Paul Fertser 19f219f731 Tcl exception codes cleanup, shutdown command amendments
This patch might influence openocd Tcl commands behaviour in subtle
ways, please give it a nice testing.

The idea is that if an OpenOCD Tcl command returns an error, an
exception is raised, and then the return code is propogated all the
way up (or to the "catch" if present). This allows to detect
"shutdown" which is not actually an error but has to raise an
exception to stop execution of the commands that follow it in the
script.

openocd_thread special-cases shutdown because it should then terminate
OpenOCD with a success error code, unless shutdown was called with an
optional "error" argument which means terminate with a non-zero exit
code.

Change-Id: I7b6fa8a2e24c947dc45d8def0008b4b007c478b3
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2600
Tested-by: jenkins
Reviewed-by: Juha Niskanen <juha.niskanen@haltian.com>
Reviewed-by: Jens Bauer <jens@gpio.dk>
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
2015-04-14 12:11:48 +01:00
..
Makefile.am Provide od+sed replacement for the bin2char helper 2014-08-02 09:00:28 +00:00
bin2char.sh Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00
binarybuffer.c helper: constify log_strings 2014-10-06 11:57:44 +00:00
binarybuffer.h Use (uint8_t *) for buf_(set|get)_u(32|64) instead of (void *) 2015-01-30 08:56:54 +00:00
command.c Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
command.h Update to the current Jim Tcl 2014-05-09 20:12:17 +00:00
configuration.c Remove unnecessary casts 2013-10-31 20:43:27 +00:00
configuration.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
fileio.c Clean up const usage to avoid excessive casting 2013-10-31 20:42:34 +00:00
fileio.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
ioutil.c ioutil: Remove unnecessary casts and fix const-discarding 2013-10-31 20:45:34 +00:00
ioutil.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
ioutil_stubs.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
jim-nvp.c build: cleanup src/helper directory 2012-02-06 10:49:52 +00:00
jim-nvp.h build: cleanup src/helper directory 2012-02-06 10:49:52 +00:00
list.h Add a bit-level transfer queue 2012-07-06 14:58:25 +00:00
log.c helper: constify log_strings 2014-10-06 11:57:44 +00:00
log.h stlink_usb: Fix swallowed error on read/write operations, add retries on SWD WAIT, clean up error debug output. 2014-08-11 22:34:52 +00:00
options.c Removed limit on lenght of command line options. 2014-08-12 21:04:27 +00:00
replacements.c Don't cast return value of [cm]alloc 2014-03-30 03:53:45 +00:00
replacements.h configure: define WIN32_LEAN_AND_MEAN early to make it effective 2015-02-04 21:56:55 +00:00
startup.tcl Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
system.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
time_support.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
time_support.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
time_support_common.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
types.h swd: Improve parity calculation and move it to types.h 2014-06-28 09:27:19 +00:00
util.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
util.h update files to correct FSF address 2013-06-05 19:52:42 +00:00