Revert "Don't raise HALT when we're examining a target"
This reverts commit b39d196489
.
This commit is contained in:
parent
b39d196489
commit
6b85d0945c
|
@ -1091,11 +1091,7 @@ int riscv_openocd_poll(struct target *target)
|
||||||
}
|
}
|
||||||
|
|
||||||
target->state = TARGET_HALTED;
|
target->state = TARGET_HALTED;
|
||||||
/* Only produce a TARGET_EVENT_HALTED callback if we've already
|
target_call_event_callbacks(target, TARGET_EVENT_HALTED);
|
||||||
* examined this target, as polls during examination shouldn't be
|
|
||||||
* raising events. */
|
|
||||||
if (target_was_examined(target))
|
|
||||||
target_call_event_callbacks(target, TARGET_EVENT_HALTED);
|
|
||||||
debug_level = old_debug_level;
|
debug_level = old_debug_level;
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue