This is an automated email from Gerrit. "zapb <d...@zapb.de>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/6944
-- gerrit commit cf9b48e0e5af07d67b7cb696d24a98cf9d9579d7 Author: Marc Schink <d...@zapb.de> Date: Sat Apr 23 13:13:06 2022 +0200 target/arm_cti: Fix error handling in 'cti create' Handle JIM_CONTINUE return value of adiv5_jim_mem_ap_spot_configure(), otherwise OpenOCD silently quits when '-dap' is not provided in 'cti create'. Change-Id: I9b1351c0911e74999d8dd1260ede9760088510d7 Signed-off-by: Marc Schink <d...@zapb.de> diff --git a/src/target/arm_cti.c b/src/target/arm_cti.c index c776e9c2a5..ecc23deba5 100644 --- a/src/target/arm_cti.c +++ b/src/target/arm_cti.c @@ -435,8 +435,11 @@ static int cti_configure(struct jim_getopt_info *goi, struct arm_cti *cti) /* parse config or cget options ... */ while (goi->argc > 0) { int e = adiv5_jim_mem_ap_spot_configure(&cti->spot, goi); - if (e != JIM_OK) + + if (e == JIM_ERR) return e; + else if (e == JIM_CONTINUE) + break; } if (!cti->spot.dap) { --