summaryrefslogtreecommitdiff
path: root/src/target/etm.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-23 08:17:01 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-24 21:37:36 -0800
commit66ee303456910f684244a20a0ac2e958d40b78cb (patch)
tree3a5f06b0ee9e3978ebc9d836aac622b752e251ad /src/target/etm.c
parent144e3678bd2d518388b6c2d7f3d2a912a9ac2abd (diff)
downloadopenocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.gz
openocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.bz2
openocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.xz
openocd+libswd-66ee303456910f684244a20a0ac2e958d40b78cb.zip
remove target_type register_command callback
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.
Diffstat (limited to 'src/target/etm.c')
-rw-r--r--src/target/etm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/target/etm.c b/src/target/etm.c
index 0f7b41ec..2465d5c1 100644
--- a/src/target/etm.c
+++ b/src/target/etm.c
@@ -2103,7 +2103,7 @@ static const struct command_registration etm_config_command_handlers[] = {
},
COMMAND_REGISTRATION_DONE
};
-static const struct command_registration etm_command_handlers[] = {
+const struct command_registration etm_command_handlers[] = {
{
.name = "etm",
.mode = COMMAND_ANY,
@@ -2113,11 +2113,6 @@ static const struct command_registration etm_command_handlers[] = {
COMMAND_REGISTRATION_DONE
};
-int etm_register_commands(struct command_context *cmd_ctx)
-{
- return register_commands(cmd_ctx, NULL, etm_command_handlers);
-}
-
static const struct command_registration etm_exec_command_handlers[] = {
{
.name = "tracemode", handle_etm_tracemode_command,