Revert "Don't raise HALT when we're examining a target"

This reverts commit dd382bb6fb.
This commit is contained in:
Palmer Dabbelt 2018-05-30 00:59:41 -07:00
parent a2d118f8e4
commit 755bf8d558
1 changed files with 1 additions and 5 deletions

View File

@ -1091,10 +1091,6 @@ 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
* 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); target_call_event_callbacks(target, TARGET_EVENT_HALTED);
debug_level = old_debug_level; debug_level = old_debug_level;
return ERROR_OK; return ERROR_OK;