riscv-openocd/src/helper
Antonio Borneo 320043c054 openocd: fix for polling during "expr" computation
Commit c7eaaf6204 ("openocd: prepare for jimtcl 0.81 'expr'
syntax change") replaces the jimtcl command "expr" with an openocd
version that detects the TCL syntax change and prints a warning.
The openocd "expr" command will be dropped after v0.12.0,

One side effect is that openocd invokes polling the target after
every openocd command, causing scripts that use several "expr"
commands to run much slower; see [1].

The proper fix would require openocd to invoke polling only at the
time period deadline, instead of at each command. Such fix is too
risky to be applied now, due to short time before v0.12.0-rc1.

As a temporarily workaround, let openocd to detect the "expr"
command and skip the polling.
This will be dropped together with the openocd "expr" command.

Change-Id: I8151aa28694817001046165a15475d64896f985e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Fixes: https://sourceforge.net/p/openocd/tickets/362/ [1]
Fixes: c7eaaf6204 ("openocd: prepare for jimtcl 0.81 'expr' syntax change")
Reviewed-on: https://review.openocd.org/c/openocd/+/7174
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2022-09-13 22:14:28 +00:00
..
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
align.h helper: add align.h 2021-08-14 13:29:43 +01:00
bin2char.sh openocd: src: replace SPDX to remaining files 2022-07-23 13:59:25 +00:00
binarybuffer.c openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
binarybuffer.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
bits.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
command.c openocd: fix for polling during "expr" computation 2022-09-13 22:14:28 +00:00
command.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
configuration.c openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
configuration.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
fileio.c openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
fileio.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
jep106.c openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
jep106.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
jep106.inc jep106: update to revision JEP106BE Jan 2022 2022-09-08 09:31:47 +00:00
jim-nvp.c openocd: src: replace the BSD-2-Clause-Views license tag 2022-07-23 13:14:24 +00:00
jim-nvp.h helper/jim-nvp: avoid camelcase error by deprecated API 2022-07-23 13:59:49 +00:00
list.h helper/list: add list_for_each_entry_direction() 2022-02-14 15:10:41 +00:00
log.c log: remove unused set_log_output() 2022-09-13 22:10:19 +00:00
log.h log: remove unused set_log_output() 2022-09-13 22:10:19 +00:00
options.c openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
replacements.c openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
replacements.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
startup.tcl openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
system.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
time_support.c openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
time_support.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
time_support_common.c openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
types.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
update_jep106.pl openocd: src: replace SPDX to remaining files 2022-07-23 13:59:25 +00:00
util.c openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00
util.h openocd: src/helper: replace the GPL-2.0-or-later license tag 2022-07-23 13:54:09 +00:00