Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add 'testee' target type | Zachary T Welch | 2009-11-25 | 3 | -1/+52 |
| | | | | | | | Alliteration aside, this should provide the final piece of the puzzle for developers that want to get started writing a new target type. In this way, it also seeks to complement the 'dummy' interface driver and 'faux' NOR flash driver. | ||||
* | improve command handling examples | Zachary T Welch | 2009-11-25 | 5 | -5/+62 |
| | | | | | | Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands. | ||||
* | add script_command_run helper | Zachary T Welch | 2009-11-25 | 1 | -26/+19 |
| | | | | | Eliminates duplicated code in script_command and handle_unknown_command. Fixes bug with duplicated help output generated by placeholder commands. | ||||
* | encapsulate and re-use log capture, retval setup | Zachary T Welch | 2009-11-25 | 1 | -49/+43 |
| | | | | | | | | | Factors log capture while running script commands, eliminating duplicated code between script_command and jim_capture. Factors setting a command's Jim "retval" into a new helper as well. Using these new helpers in the new unknown command handler's fixes possible regressions caused by these bits being missing. | ||||
* | combine help and usage command handlers | Zachary T Welch | 2009-11-25 | 1 | -20/+8 |
| | | | | Remove duplicated handler code by checking the running command name. | ||||
* | improve usage and help command output | Zachary T Welch | 2009-11-24 | 2 | -44/+38 |
| | | | | | Rewrite formatting code in C, removing last remenants of TCL help code. Sinificantly improves the readability by using smarter indent and wrap. | ||||
* | allow scripts to update usage information | Zachary T Welch | 2009-11-24 | 2 | -7/+36 |
| | | | | | | The add_usage_text command uses the same C handler, which was updated to support its new polymorphic role. This patch updates the two script commands that needed this support: 'find' and 'script'. | ||||
* | httpd: use register_commands() | Zachary T Welch | 2009-11-24 | 4 | -20/+51 |
| | | | | | | | Updates httpd_start() to use register_commands() for 'readform' and 'writeform' commands. Adds server/httpd.h to export the new signatures for this function (and httpd_stop), which allows removing the obsoleted declarations inside openocd.c. | ||||
* | add jim_handler to command_registration | Zachary T Welch | 2009-11-24 | 6 | -83/+146 |
| | | | | | | Adding jim_handler field to command_registration allows removing the register_jim helper. All command registrations now go through the register_command{,s}() functions. | ||||
* | refactor command_new to use command_registration | Zachary T Welch | 2009-11-24 | 1 | -12/+10 |
| | | | | Save stack space: use a struct. Makes it easier to add new parameters. | ||||
* | remove register_commands from etm_capture_driver | Zachary T Welch | 2009-11-24 | 5 | -31/+17 |
| | | | | | | Converts callback to an array of command_registration records. Moves oocd_trace driver definition to end of file to eliminate useless forward declaration. | ||||
* | remove target_type register_command callback | Zachary T Welch | 2009-11-24 | 31 | -149/+89 |
| | | | | | | Uses chaining of command_registration structures to eliminate all target_type register_callback routines. Exports the command_handler registration arrays for those target types that are used by others. | ||||
* | xscale: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -23/+107 |
| | |||||
* | trace: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -10/+29 |
| | |||||
* | target_request: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -8/+21 |
| | |||||
* | target: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -104/+201 |
| | |||||
* | oocd_trace: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -10/+32 |
| | |||||
* | etm_dummy: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -7/+20 |
| | |||||
* | etm: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -37/+89 |
| | |||||
* | etb: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -8/+20 |
| | |||||
* | cortex_m3: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -19/+36 |
| | |||||
* | cortex_a8: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -17/+25 |
| | |||||
* | armv7m: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -28/+48 |
| | |||||
* | armv7a: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -27/+48 |
| | |||||
* | armv4_5: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -18/+34 |
| | |||||
* | arm9tdmi: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -12/+21 |
| | |||||
* | arm966e: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -12/+23 |
| | |||||
* | arm926ejs: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -14/+22 |
| | |||||
* | arm920t: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -27/+47 |
| | |||||
* | arm7_9_common: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -20/+37 |
| | |||||
* | arm720t: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -15/+23 |
| | |||||
* | arm11: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -35/+62 |
| | |||||
* | remove nand_controller->register_callbacks | Zachary T Welch | 2009-11-24 | 12 | -41/+8 |
| | | | | | Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands. | ||||
* | remove flash_driver->register_callbacks | Zachary T Welch | 2009-11-24 | 17 | -105/+25 |
| | | | | | Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands. | ||||
* | tms470: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -7/+32 |
| | |||||
* | str9xpec: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -38/+81 |
| | |||||
* | str9x: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -8/+21 |
| | |||||
* | str7x: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -8/+20 |
| | |||||
* | stm32x: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -21/+44 |
| | |||||
* | stellaris: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -7/+20 |
| | |||||
* | pic32mx: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -17/+25 |
| | |||||
* | nand: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -47/+98 |
| | | | | Eliminates 'nand_cmd' global variable. | ||||
* | mflash: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -17/+54 |
| | |||||
* | lpc3180_nand_controller: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -5/+21 |
| | |||||
* | lpc2900: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -34/+55 |
| | |||||
* | lpc2000: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -8/+20 |
| | |||||
* | flash: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -50/+117 |
| | | | | Eliminates 'flash_cmd' global variable. | ||||
* | ecos: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -2/+0 |
| | |||||
* | cfi: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -6/+0 |
| | |||||
* | avrf: use register_commands() | Zachary T Welch | 2009-11-24 | 1 | -8/+20 |
| |