openocd/src
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
..
flash Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
helper Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
jtag jtag/tcl: fix incorrect memcpy in jim_newtap_expected_id 2015-04-14 12:09:48 +01:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos RTOS: Add logging to FreeRTOS and general RTOS 2015-04-14 11:42:58 +01:00
server Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
svf Openocd: svf: Add ability to ignore svf_check_tdo errors 2014-07-03 18:08:48 +00:00
target Cortex-A: Don't flush the data/unified cache if MMU is off 2015-04-14 11:47:48 +01:00
transport transport: make 'transport select' auto-select the first available transport if not set 2015-03-25 21:32:49 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am Makefile.am: link libusb-1.0 after libusb-0.1 to fix dependencies 2015-02-04 21:56:45 +00:00
openocd.c Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
openocd.h Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00