diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-16 16:36:12 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-16 16:36:12 -0800 |
commit | d7d857a1896005df53956565644b138a76a1f0ec (patch) | |
tree | bde1f83cfb66793fdfef25da7ec76adaaeed6369 | |
parent | f86137066a6b42c46c457c9837a8015990bf71e6 (diff) | |
download | openocd+libswd-d7d857a1896005df53956565644b138a76a1f0ec.tar.gz openocd+libswd-d7d857a1896005df53956565644b138a76a1f0ec.tar.bz2 openocd+libswd-d7d857a1896005df53956565644b138a76a1f0ec.tar.xz openocd+libswd-d7d857a1896005df53956565644b138a76a1f0ec.zip |
ARM11: register (most) standard ARM commands
Have ARM11 register the "standard" ARM commands. For now, only
disassembly really works.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
-rw-r--r-- | src/target/arm11.c | 2 | ||||
-rw-r--r-- | src/target/armv4_5.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c index 750c1f59..4d9016fd 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -2138,6 +2138,8 @@ static int arm11_register_commands(struct command_context *cmd_ctx) struct command *top_cmd, *mw_cmd; + armv4_5_register_commands(cmd_ctx); + top_cmd = register_command(cmd_ctx, NULL, "arm11", NULL, COMMAND_ANY, NULL); diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c index 7c4861ff..b60b8b27 100644 --- a/src/target/armv4_5.c +++ b/src/target/armv4_5.c @@ -378,6 +378,12 @@ COMMAND_HANDLER(handle_armv4_5_reg_command) if (armv4_5_mode_to_number(armv4_5->core_mode)==-1) return ERROR_FAIL; + if (!armv4_5->full_context) { + command_print(cmd_ctx, "error: target doesn't support %s", + CMD_NAME); + return ERROR_FAIL; + } + for (num = 0; num <= 15; num++) { output_len = 0; @@ -522,7 +528,8 @@ int armv4_5_register_commands(struct command_context *cmd_ctx) "display/change ARM core state <arm | thumb>"); register_command(cmd_ctx, armv4_5_cmd, "disassemble", handle_armv4_5_disassemble_command, COMMAND_EXEC, - "disassemble instructions <address> [<count> ['thumb']]"); + "disassemble instructions " + "<address> [<count> ['thumb']]"); return ERROR_OK; } |