Register one or more commands in the specified context, as children of @c parent (or top-level commends, if NULL). In a registration's record contains a non-NULL @c chain member and name is NULL, the commands on the chain will be registered in the same context. Otherwise, the chained commands are added as children of the command.
Register one or more commands, as register_commands(), plus specify that command should override the current target
Register one or more commands, as register_commands(), plus specify a pointer to command private data that would be accessible through the macro CMD_DATA. The private data will not be freed when command is unregistered.
Unregisters all commands from the specified context.
Unregisters the help for all commands. Used at exit to remove the help added through the commands 'add_help_text' and 'add_usage_text'.
Creates a copy of an existing command context. This does not create a deep copy of the command list, so modifications in one context will affect all shared contexts. The caller must track reference counting and ensure the commands are freed before destroying the last instance.
Frees the resources associated with a command context. The commands are not removed, so unregister_all_commands() must be called first.
Registers the 'flash' subsystem commands
Initialize JTAG chain using only a RESET reset. If init fails, try reset + init.
reset, then initialize JTAG chain
Initialize debug adapter upon startup.
Register the adapter's commands
Called by debug adapter drivers, or affiliated Tcl config scripts, to declare the set of transports supported by an adapter. When there is only one member of that set, it is automatically selected.
OpenOCD runtime meat that can become single-thread in future. It parse commandline, reads configuration, sets up the target and starts server loop. Commandline arguments are passed into this function from openocd_main().