]> git.sur5r.net Git - openocd/commitdiff
sharpen error propagation a wee bit.
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 20 Aug 2008 11:23:49 +0000 (11:23 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 20 Aug 2008 11:23:49 +0000 (11:23 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@952 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm11.c

index 59b6c4fe7c85032515b3da368ffe7ebf5558e46d..23fb71bb747ea7873f8150b6b759625be573143f 100644 (file)
@@ -1389,6 +1389,7 @@ int arm11_init_target(struct command_context_s *cmd_ctx, struct target_s *target
 int arm11_examine(struct target_s *target)
 {
     FNC_INFO;
+    int retval;
 
     arm11_common_t * arm11 = target->arch_info;
 
@@ -1415,7 +1416,8 @@ int arm11_examine(struct target_s *target)
 
     arm11_add_dr_scan_vc(asizeof(chain0_fields), chain0_fields, TAP_RTI);
 
-    jtag_execute_queue();
+    if ((retval=jtag_execute_queue())!=ERROR_OK) 
+       return retval;
 
 
     switch (arm11->device_id & 0x0FFFF000)