]> git.sur5r.net Git - openocd/commitdiff
ARM11 update. OpenOCD supports starting without being able to talk to the hardware.
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 4 Jul 2008 07:20:43 +0000 (07:20 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 4 Jul 2008 07:20:43 +0000 (07:20 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@741 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm11.c
src/target/arm11.h

index ea88d5c0b7333f60ee91265afc9ae3540c219540..da779b08e069f61abbdd7cf3bfe02d1b065668b6 100644 (file)
@@ -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),
 };
 
@@ -1371,6 +1372,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;
 
index faa93f586de72a3b21556f7278a6e0ad8c1dc814..8b05b2e1c9688577b2b5a638235ae49ed3ee2fa5 100644 (file)
@@ -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);