X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fhla_target.c;h=4bf7bdc4de3496749de3ec04ec02297249028edf;hp=567a61dc355602257cca9a087b37dfd277601da8;hb=d9cb5593cd4855fba7ab76a7db2f2db6e7978f67;hpb=fc348bc08648f492c6e5d63d47c0f7a1e6e0b3b2 diff --git a/src/target/hla_target.c b/src/target/hla_target.c index 567a61dc35..4bf7bdc4de 100644 --- a/src/target/hla_target.c +++ b/src/target/hla_target.c @@ -470,6 +470,9 @@ static int adapter_poll(struct target *target) if (prev_target_state == state) return ERROR_OK; + if (prev_target_state == TARGET_DEBUG_RUNNING && state == TARGET_RUNNING) + return ERROR_OK; + target->state = state; if (state == TARGET_HALTED) {