community/openocd: Does not fully support jimtcl 0.8.1
Since the upgrade to jimtcl 0.8.1 there are all kinds of TCL errors/warning when using OpenOCD. For examples:
/usr/bin/../share/openocd/scripts/mem_helper.tcl:37: Error: wrong # args: should be "expr expression"
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 288
in procedure 'mmw' called at file "/usr/bin/../share/openocd/scripts/target/stm32f4x.cfg", line 85
at file "/usr/bin/../share/openocd/scripts/mem_helper.tcl", line 37
This is due to the fact that the OpenOCD 0.11 do not fully support a jimtcl 0.8.1 TCL language change. The commit fixing this issue is https://github.com/openocd-org/openocd/commit/f5657aa76e795e4ed5b13a9f5df943181a123e49 though this in fact a commit series consisting of multiple commits so probably not the easiest to backport. Alternatively, we could upgrade OpenOCD to the 0.12 release candidate or start using a vendored jimtcl version again.
@maribu are you also seeing these errors? any preferences regarding the solutions I suggested above?
Should probably also check the other OpenOCD version that we package...