E.g. ipdbg -start command was deprecated in favor of ipdbg create-hub 7a77355a3ea574dc5b7fc0a6ea8be413589ef847
However, since the name of the proc includes a space, it can not be simply called via CLI.
In particular:
> openocd -c "ipdbg -start"
...
invalid command name "ipdbg"
Extra quotes/braces are needed to get the expected behavior:
> build/upstream/src/openocd -c '{ipdbg -start}'
DEPRECATED! use 'ipdbg create-hub' and 'chip.ipdbghub ipdbg start ...', not 'ipdbg -start ...'
parsing arguments failed: no tap and no pld given.
AFAIU, this is a bug, since deprecating a command in such manner is not backward compatible.
Thanks for reporting it.
This is already fixed in other deprecated commands, like "hla", by adding a proc to concatenate the arguments.
In case of "ipdbg" we need to add in src/jtag/startup.tcl
~~~
proc ipdbg {cmd args} {
tailcall "ipdbg $cmd" {*}$args
}
~~~
I think we need the same for other commands; to be investigated.
Patches are welcome!