From 6b85d0945cdf5bb13266970aaa63c49cc431d095 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Tue, 29 May 2018 23:27:41 -0700 Subject: [PATCH] Revert "Don't raise HALT when we're examining a target" This reverts commit b39d196489eeea6475c88d989dec54b1c00ff0b2. --- src/target/riscv/riscv.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 490a2633a..9c00c430c 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -1091,11 +1091,7 @@ int riscv_openocd_poll(struct target *target) } 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; return ERROR_OK; }