aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-11-25support OPENOCD_DEBUG_LEVEL environment settingZachary T Welch
Detect the OPENOCD_DEBUG_LEVEL setting in log_init(), allowing the very early startup phases to be debugged.
2009-11-25log: improve initializationZachary T Welch
Removes redundant assignment of start_ms from log_register_commands(). Eliminates command_context parameter and return value. Adds Doxygen comment block for this API call.
2009-11-25add 'testee' target typeZachary T Welch
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.
2009-11-25improve command handling examplesZachary T Welch
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.
2009-11-25add script_command_run helperZachary T Welch
Eliminates duplicated code in script_command and handle_unknown_command. Fixes bug with duplicated help output generated by placeholder commands.
2009-11-25encapsulate and re-use log capture, retval setupZachary T Welch
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.
2009-11-25combine help and usage command handlersZachary T Welch
Remove duplicated handler code by checking the running command name.
2009-11-24improve usage and help command outputZachary T Welch
Rewrite formatting code in C, removing last remenants of TCL help code. Sinificantly improves the readability by using smarter indent and wrap.
2009-11-24allow scripts to update usage informationZachary T Welch
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'.
2009-11-24httpd: use register_commands()Zachary T Welch
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.
2009-11-24add jim_handler to command_registrationZachary T Welch
Adding jim_handler field to command_registration allows removing the register_jim helper. All command registrations now go through the register_command{,s}() functions.
2009-11-24refactor command_new to use command_registrationZachary T Welch
Save stack space: use a struct. Makes it easier to add new parameters.
2009-11-24remove register_commands from etm_capture_driverZachary T Welch
Converts callback to an array of command_registration records. Moves oocd_trace driver definition to end of file to eliminate useless forward declaration.
2009-11-24remove target_type register_command callbackZachary T Welch
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.
2009-11-24xscale: use register_commands()Zachary T Welch
2009-11-24trace: use register_commands()Zachary T Welch
2009-11-24target_request: use register_commands()Zachary T Welch
2009-11-24target: use register_commands()Zachary T Welch
2009-11-24oocd_trace: use register_commands()Zachary T Welch
2009-11-24etm_dummy: use register_commands()Zachary T Welch
2009-11-24etm: use register_commands()Zachary T Welch
2009-11-24etb: use register_commands()Zachary T Welch
2009-11-24cortex_m3: use register_commands()Zachary T Welch
2009-11-24cortex_a8: use register_commands()Zachary T Welch
2009-11-24armv7m: use register_commands()Zachary T Welch
2009-11-24armv7a: use register_commands()Zachary T Welch
2009-11-24armv4_5: use register_commands()Zachary T Welch
2009-11-24arm9tdmi: use register_commands()Zachary T Welch
2009-11-24arm966e: use register_commands()Zachary T Welch
2009-11-24arm926ejs: use register_commands()Zachary T Welch
2009-11-24arm920t: use register_commands()Zachary T Welch
2009-11-24arm7_9_common: use register_commands()Zachary T Welch
2009-11-24arm720t: use register_commands()Zachary T Welch
2009-11-24arm11: use register_commands()Zachary T Welch
2009-11-24remove nand_controller->register_callbacksZachary T Welch
Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands.
2009-11-24remove flash_driver->register_callbacksZachary T Welch
Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands.
2009-11-24tms470: use register_commands()Zachary T Welch
2009-11-24str9xpec: use register_commands()Zachary T Welch
2009-11-24str9x: use register_commands()Zachary T Welch
2009-11-24str7x: use register_commands()Zachary T Welch
2009-11-24stm32x: use register_commands()Zachary T Welch
2009-11-24stellaris: use register_commands()Zachary T Welch
2009-11-24pic32mx: use register_commands()Zachary T Welch
2009-11-24nand: use register_commands()Zachary T Welch
Eliminates 'nand_cmd' global variable.
2009-11-24mflash: use register_commands()Zachary T Welch
2009-11-24lpc3180_nand_controller: use register_commands()Zachary T Welch
2009-11-24lpc2900: use register_commands()Zachary T Welch
2009-11-24lpc2000: use register_commands()Zachary T Welch
2009-11-24flash: use register_commands()Zachary T Welch
Eliminates 'flash_cmd' global variable.
2009-11-24ecos: use register_commands()Zachary T Welch