Commit 0686e944 authored by ntfreak's avatar ntfreak
Browse files

- fix issue when target is already halted

git-svn-id: svn://svn.berlios.de/openocd/trunk@355 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 3a4f43ab
...@@ -700,6 +700,7 @@ int arm7_9_poll(target_t *target) ...@@ -700,6 +700,7 @@ int arm7_9_poll(target_t *target)
DEBUG("DBGACK set, dbg_state->value: 0x%x", buf_get_u32(dbg_stat->value, 0, 32)); DEBUG("DBGACK set, dbg_state->value: 0x%x", buf_get_u32(dbg_stat->value, 0, 32));
if (target->state == TARGET_UNKNOWN) if (target->state == TARGET_UNKNOWN)
{ {
target->state = TARGET_RUNNING;
WARNING("DBGACK set while target was in unknown state. Reset or initialize target."); WARNING("DBGACK set while target was in unknown state. Reset or initialize target.");
} }
if ((target->state == TARGET_RUNNING) || (target->state == TARGET_RESET)) if ((target->state == TARGET_RUNNING) || (target->state == TARGET_RESET))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment