summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-04 07:20:43 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-04 07:20:43 +0000
commite8b16d40f1ace10c1b2c1c372bba7f04b26f5c24 (patch)
treeb8a8aebfe702af7267b16e669843eef4fb605486 /src/target
parent586f8db90f3d21258f9b5c69a94630a1b9a6fe97 (diff)
downloadopenocd+libswd-e8b16d40f1ace10c1b2c1c372bba7f04b26f5c24.tar.gz
openocd+libswd-e8b16d40f1ace10c1b2c1c372bba7f04b26f5c24.tar.bz2
openocd+libswd-e8b16d40f1ace10c1b2c1c372bba7f04b26f5c24.tar.xz
openocd+libswd-e8b16d40f1ace10c1b2c1c372bba7f04b26f5c24.zip
ARM11 update. OpenOCD supports starting without being able to talk to the hardware.
git-svn-id: svn://svn.berlios.de/openocd/trunk@741 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm11.c8
-rw-r--r--src/target/arm11.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c
index ea88d5c0..da779b08 100644
--- a/src/target/arm11.c
+++ b/src/target/arm11.c
@@ -92,6 +92,7 @@ target_type_t arm11_target =
ARM11_HANDLER(register_commands),
ARM11_HANDLER(target_command),
ARM11_HANDLER(init_target),
+ ARM11_HANDLER(examine),
ARM11_HANDLER(quit),
};
@@ -1372,6 +1373,13 @@ int arm11_target_command(struct command_context_s *cmd_ctx, char *cmd, char **ar
int arm11_init_target(struct command_context_s *cmd_ctx, struct target_s *target)
{
+ /* Initialize anything we can set up without talking to the target */
+ return ERROR_OK;
+}
+
+/* talk to the target and set things up */
+int arm11_examine(struct command_context_s *cmd_ctx, struct target_s *target)
+{
FNC_INFO;
arm11_common_t * arm11 = target->arch_info;
diff --git a/src/target/arm11.h b/src/target/arm11.h
index faa93f58..8b05b2e1 100644
--- a/src/target/arm11.h
+++ b/src/target/arm11.h
@@ -188,6 +188,7 @@ int arm11_target_request_data(struct target_s *target, u32 size, u8 *buffer);
int arm11_halt(struct target_s *target);
int arm11_resume(struct target_s *target, int current, u32 address, int handle_breakpoints, int debug_execution);
int arm11_step(struct target_s *target, int current, u32 address, int handle_breakpoints);
+int arm11_examine(struct command_context_s *cmd_ctx, struct target_s *target);
/* target reset control */
int arm11_assert_reset(struct target_s *target);