diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-04-13 12:08:06 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-04-13 12:08:06 +0000 |
commit | 23837f5a3a49def47b597bea3f05c5f155e17038 (patch) | |
tree | 2169fc30dd380fae06bf09076abf8924b9008491 | |
parent | 7de51ceef9741b7d2bed6b34194345c5be90f6a1 (diff) | |
download | openocd+libswd-23837f5a3a49def47b597bea3f05c5f155e17038.tar.gz openocd+libswd-23837f5a3a49def47b597bea3f05c5f155e17038.tar.bz2 openocd+libswd-23837f5a3a49def47b597bea3f05c5f155e17038.tar.xz openocd+libswd-23837f5a3a49def47b597bea3f05c5f155e17038.zip |
allows launching OpenOCD w/telnet+gdb server w/the
target powered down.
git-svn-id: svn://svn.berlios.de/openocd/trunk@571 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/target/arm7_9_common.c | 3 | ||||
-rw-r--r-- | src/target/cortex_m3.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 14d03141..d3445257 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -649,11 +649,14 @@ int arm7_9_target_request_data(target_t *target, u32 size, u8 *buffer) int arm7_9_handle_target_request(void *priv) { target_t *target = priv; + if (!target->type->examined) + return ERROR_OK; armv4_5_common_t *armv4_5 = target->arch_info; arm7_9_common_t *arm7_9 = armv4_5->arch_info; arm_jtag_t *jtag_info = &arm7_9->jtag_info; reg_t *dcc_control = &arm7_9->eice_cache->reg_list[EICE_COMMS_CTRL]; + if (!target->dbg_msg_enabled) return ERROR_OK; diff --git a/src/target/cortex_m3.c b/src/target/cortex_m3.c index 653ebab0..94f68f69 100644 --- a/src/target/cortex_m3.c +++ b/src/target/cortex_m3.c @@ -1336,6 +1336,8 @@ int cortex_m3_target_request_data(target_t *target, u32 size, u8 *buffer) int cortex_m3_handle_target_request(void *priv) { target_t *target = priv; + if (!target->type->examined) + return ERROR_OK; armv7m_common_t *armv7m = target->arch_info; cortex_m3_common_t *cortex_m3 = armv7m->arch_info; swjdp_common_t *swjdp = &cortex_m3->swjdp_info; |