openocd/src/helper
Øyvind Harboe ac86f4ccba command: capture command now handles both types commands
Commands that output progress output and no return value
will have the progress output captured.

Commands that do not output progress output(tcl commands)
will return the tcl return value instead.

The advantage here is that it is no longer necessary to
consider which command one is capturing, it works for
either.

Example #1: capture progress output:

set foo [capture help]

Example #2: capture tcl return value

set foo [capture {set abc def}]

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-09-11 11:42:38 +02:00
..
bin2char.c bin2char: for win32 set stdin/stdout to binary mode 2009-10-30 11:59:57 +00:00
binarybuffer.c BINARYBUFFER: review scope of data and functions 2010-04-10 21:54:37 +08:00
binarybuffer.h change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
command.c command: capture command now handles both types commands 2010-09-11 11:42:38 +02:00
command.h helper: fix -Wshadow warning in number parsing 2010-06-14 12:27:57 +02:00
configuration.c don't require 'openocd.cfg' to start 2010-01-05 13:32:39 -08:00
configuration.h change #include "command.h" to <helper/command.h> 2009-12-03 04:22:48 -08:00
fileio.c fileio: -Wshadow warning fix 2010-06-15 23:01:42 +02:00
fileio.h change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
ioutil_stubs.c stubs: buildfix 2009-12-02 15:24:14 -08:00
ioutil.c ioutil: fix internal fn names 2010-08-02 11:59:46 +02:00
ioutil.h remove BUILD_IOUTIL symbol 2009-12-02 13:26:26 -08:00
jim-eventloop.c helper/jim-eventloop: review unused symbols 2010-06-21 22:14:11 +08:00
jim-eventloop.h helper/jim-eventloop.h: review unused definitions 2010-06-21 22:14:12 +08:00
jim.c reverse order of Jim stack trace output 2010-06-18 08:06:19 +02:00
jim.h Sync with official Jim Tcl repository. 2009-10-19 15:16:42 +02:00
log.c jim: fix bug in tcl "puts" 2010-05-18 12:34:12 +02:00
log.h HELPER/LOG: review unused symbols 2010-04-10 22:25:22 +08:00
Makefile.am util: ms command to calculate length of operations 2010-08-01 09:35:58 +02:00
options.c gpl: fix GPL startup message 2010-02-15 22:59:41 +01:00
replacements.c safer conversion to HANDLER on MinGW-W64 2009-10-17 22:18:38 -07:00
replacements.h ARM semihosting: win32 and cygwin fixes 2010-01-28 21:05:09 +00:00
startup.tcl make syntax errors respond with 'usage' 2009-11-30 16:29:34 -08:00
system.h Clang buildfixes 2010-01-29 00:02:12 -08:00
time_support_common.c ecos: crisper implementation of timeval_ms() 2009-12-16 08:15:05 +01:00
time_support_ecos.c ecos: crisper implementation of timeval_ms() 2009-12-16 08:15:05 +01:00
time_support.c TIME_SUPPORT: review unused symbols 2010-04-10 19:25:32 +08:00
time_support.h TIME_SUPPORT: review unused symbols 2010-04-10 19:25:32 +08:00
types.h ecos: add missing PRId8 definition 2010-01-21 08:11:39 +01:00
util.c util: ms command to calculate length of operations 2010-08-01 09:35:58 +02:00
util.h util: ms command to calculate length of operations 2010-08-01 09:35:58 +02:00