Hi all,

This series updates the command registration API.

The first two patches adds the COMMAND_REGISTER macro, which is removed
in the final series.  The next allows the introduction of the
command_registration structure, which is used to pass command parameters.
These changes allow the next two patches to add batch registration and
support the addition of a proper 'usage' command.

To support the need for "inheriting" commands, the next patches
introduce the concept of command chaining, whereby each
command_registration record may provide another command_registration
array to be registered under it.  If the record gives a chain but no
command, the commands are registered in the same context as the others
in the list; if the chain is part of a normal command registration, the
other commands will be added as sub-commands.

The last patches re-implement the 'unknown' function to allow calling
N-depth commands.  Later patches add the required support to handle some
commands that abused the old mechanism (e.g. 'flash banks').

Cheers,

Zach
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to