From 3c00bd8ff25c0677f7fa50364c7f395caf3c117e Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Wed, 30 May 2018 01:11:17 -0700 Subject: [PATCH] Enable debug during the poll --- src/target/riscv/riscv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index c1b552768..387b852bd 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -1036,7 +1036,9 @@ int riscv_openocd_poll(struct target *target) #ifdef RISCV_DEBUG_POLL LOG_DEBUG(" hart %d halted", halted_hart); #else + debug_level = old_debug_level; LOG_DEBUG("hart %d halted", halted_hart); + debug_level = LOG_LVL_INFO; #endif /* If we're here then at least one hart triggered. That means @@ -1063,7 +1065,9 @@ int riscv_openocd_poll(struct target *target) #ifdef RISCV_DEBUG_POLL LOG_DEBUG(" hart %d halted", halted_hart); #else + debug_level = old_debug_level; LOG_DEBUG("hart %d halted", halted_hart); + debug_level = LOG_LVL_INFO; #endif }