This is an automated email from Gerrit. "Antonio Borneo <[email protected]>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9559
-- gerrit commit 2cc3b4e3f33f994a1da70b992d1b0268eee9656f Author: Antonio Borneo <[email protected]> Date: Thu Apr 2 16:57:36 2026 +0200 cortex_a: allow resume over BKPT instruction The firmware on the target could include the BKPT instruction, added to allow halting and debugging the code. If the target has halted on such BKPT instruction, skip the instruction on resume to avoid hitting again the same breakpoint. This aligns the Cortex-A code with the Cortex-M implementation. Change-Id: Ie760a5778f21a19f7772f780acf2c0e331175ce6 Signed-off-by: Antonio Borneo <[email protected]> diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index 657bbd4938..b64a3c2c5a 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -954,6 +954,13 @@ static int cortex_a_internal_restore(struct target *target, bool current, arm->pc->dirty = true; arm->pc->valid = true; + if (!debug_execution && + !breakpoint_find(target, buf_get_u32(arm->pc->value, 0, 32))) { + retval = cortex_a_maybe_skip_bkpt_inst(target, NULL); + if (retval != ERROR_OK) + return retval; + } + /* restore dpm_mode at system halt */ arm_dpm_modeswitch(&armv7a->dpm, ARM_MODE_ANY); /* called it now before restoring context because it uses cpu --
