diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-20 11:23:49 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-20 11:23:49 +0000 |
commit | ae86e921ebdeaa82559331ae528ef72d12022ae9 (patch) | |
tree | ccbce7bbcad5b8b7aab219022cb7430b1a920fb9 | |
parent | a3325f1dc4fd6246706723afd29bb4d69e62bddd (diff) | |
download | openocd+libswd-ae86e921ebdeaa82559331ae528ef72d12022ae9.tar.gz openocd+libswd-ae86e921ebdeaa82559331ae528ef72d12022ae9.tar.bz2 openocd+libswd-ae86e921ebdeaa82559331ae528ef72d12022ae9.tar.xz openocd+libswd-ae86e921ebdeaa82559331ae528ef72d12022ae9.zip |
sharpen error propagation a wee bit.
git-svn-id: svn://svn.berlios.de/openocd/trunk@952 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/target/arm11.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c index 59b6c4fe..23fb71bb 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -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) |