diff options
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/etm.c | 8 | ||||
-rw-r--r-- | src/target/oocd_trace.c | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/target/etm.c b/src/target/etm.c index 7cb07d6b..801fb8e0 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -1815,7 +1815,8 @@ int etm_register_commands(struct command_context_s *cmd_ctx) { etm_cmd = register_command(cmd_ctx, NULL, "etm", NULL, COMMAND_ANY, "Embedded Trace Macrocell"); - register_command(cmd_ctx, etm_cmd, "config", handle_etm_config_command, COMMAND_CONFIG, "etm config <target> <port_width> <port_mode> <clocking> <capture_driver>"); + register_command(cmd_ctx, etm_cmd, "config", handle_etm_config_command, + COMMAND_CONFIG, "etm config <target> <port_width> <port_mode> <clocking> <capture_driver>"); return ERROR_OK; } @@ -1823,12 +1824,13 @@ int etm_register_commands(struct command_context_s *cmd_ctx) int etm_register_user_commands(struct command_context_s *cmd_ctx) { register_command(cmd_ctx, etm_cmd, "tracemode", handle_etm_tracemode_command, - COMMAND_EXEC, "configure trace mode <none|data|address|all> <context id bits> <cycle accurate> <branch output"); + COMMAND_EXEC, "configure trace mode <none|data|address|all> " + "<context_id_bits> <cycle_accurate> <branch_output>"); register_command(cmd_ctx, etm_cmd, "info", handle_etm_info_command, COMMAND_EXEC, "display info about the current target's ETM"); - register_command(cmd_ctx, etm_cmd, "trigger_percent <percent>", handle_etm_trigger_percent_command, + register_command(cmd_ctx, etm_cmd, "trigger_percent", handle_etm_trigger_percent_command, COMMAND_EXEC, "amount (<percent>) of trace buffer to be filled after the trigger occured"); register_command(cmd_ctx, etm_cmd, "status", handle_etm_status_command, COMMAND_EXEC, "display current target's ETM status"); diff --git a/src/target/oocd_trace.c b/src/target/oocd_trace.c index d54766ae..4d157076 100644 --- a/src/target/oocd_trace.c +++ b/src/target/oocd_trace.c @@ -24,6 +24,11 @@ #include "oocd_trace.h" #include "arm7_9_common.h" +/* + * This is "proof of concept" code, for prototype hardware: + * https://lists.berlios.de/pipermail/openocd-development/2007-September/000336.html + */ + static int oocd_trace_register_commands(struct command_context_s *cmd_ctx); |