Skip to content

Releases: nattgris/openocd

latest

23 Apr 16:39

Choose a tag to compare

latest Pre-release
Pre-release
target/riscv: add target_was_examined() checks

If a RISC-V target does not pass initial examination
some commands fail by assert() or log lot of hardly
understandable errors.

Check if target was examined otherwise fail early.
Although command_print() is preferred in OpenOCD commands,
use LOG_TARGET_ERROR() if the rest of command uses the same.

Change-Id: I615e48f348a0f3bdaf71630a2fcd6fc7665115d5
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/9275
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>