openocd/src/jtag
Antonio Borneo e216186fab helper/command: register full-name commands in jim
While still keeping the tree of struct command, stop registering
commands in jim by the root "word" only.

Register the full-name of the command and pass as private data the
struct command of the command itself.

Still use the tree of struct command to un-register the commands.

Some "native" commands (.jim_handler) share the same handler, then
the handler checks the command name to run the right code.
Now argv[0] returns the full-name of the command, so check the
name by looking in the struct command passed as private data.

Change-Id: I5623c61cceee8a75f5d5a551ef3fbf5a303af6be
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5671
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
2021-04-18 15:34:10 +01:00
..
aice openocd: drop dependency from libusb0 2021-04-05 23:25:34 +01:00
drivers drivers/cmsis-dap: tidy up buffer access 2021-04-10 20:54:43 +01:00
hla stlink: support of ST-LINK TCP server using stlink-dap and hla 2021-03-10 21:29:06 +00:00
adapter.c jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
commands.c Fix debug prints when loading to flash 2020-09-05 16:48:08 +01:00
commands.h jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
core.c jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
driver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
interface.c coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
interface.h armv7m_trace: get rid of the old tpiu code 2021-03-10 21:34:04 +00:00
interfaces.c jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
interfaces.h jtag: remove unused function adapter_driver_modules_load() 2020-05-02 15:41:21 +01:00
jtag.h jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
Makefile.am jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
minidriver.h jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
startup.tcl zy1000: drop the code, deprecated in v0.10.0 2021-03-19 21:55:50 +00:00
swd.h swd: get rid of jtag queue to assert/deassert srst 2020-01-14 11:15:12 +00:00
swim.c swim: add new transport 2020-05-24 21:32:05 +01:00
swim.h swim: fix adapter speed handling 2020-05-24 21:31:21 +01:00
tcl.c helper/command: register full-name commands in jim 2021-04-18 15:34:10 +01:00
tcl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00