openocd/src/server
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 ecosboard: delete bit-rotted eCos code 2012-03-13 19:11:11 +00:00
gdb_server.c gdb_server: ignore stray + in ACK mode 2015-02-22 16:16:06 +00:00
gdb_server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
server.c Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
server.h Added system signal handling to Linux version 2015-03-09 06:25:45 +00:00
server_stubs.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
startup.tcl Fix a bunch of typos. 2011-03-17 07:25:25 +01:00
tcl_server.c server: tcl_notifications command 2015-03-09 06:30:30 +00:00
tcl_server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
telnet_server.c Clean up const usage to avoid excessive casting 2013-10-31 20:42:34 +00:00
telnet_server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00