Is there any update for this issue? I am getting a similar problem with mips processor but with hw breakpoints.
--- ** [tickets:#355] [Openocd-user] Unsetting aarch64 software breakpoint doesn't work** **Status:** new **Milestone:** 0.11.0 **Labels:** arm a35 software breakpoint **Created:** Fri Jun 24, 2022 07:44 AM UTC by tywang **Last Updated:** Fri Jun 24, 2022 07:44 AM UTC **Owner:** nobody **Attachments:** - [test.log](https://sourceforge.net/p/openocd/tickets/355/attachment/test.log) (975 Bytes; application/octet-stream) Hello Openocd Community I came around a problem regrading software breakpoint and single-stepping when debug arm a35 core with openocd. When I set a software breakpoint in openocd and then hit this breakpoint, I can't proceed execute the code with single stepping. The core seems to hit the breakpoint again and again when single stepping. I've checked the software breakpoint procedure, it replaced the code with "HLT" instruction in memory. After hitting the breakpoint, the HLT instruction is reverted to previous instruction successfully. The D cache & I cache is disabled according to the SCTLR_ELx value(0x00c00800) Besides, the hardware breakpoint works well. Thanks, tywang # ====GDB===== (gdb) tar ext:3333 Remote debugging using :3333 0x0000000000000200 in ?? () (gdb) load Loading section .text, size 0x3cbc lma 0x400000 Loading section .rodata, size 0xb84 lma 0x404000 Loading section .data, size 0x3b8 lma 0x405000 Start address 0x0000000000400000, load size 19448 Transfer rate: 73 KB/sec, 6482 bytes/write. (gdb) b main Breakpoint 1 at 0x400df4: file main.c, line 41. (gdb) continue Continuing. Breakpoint 1, main () at main.c:41 41 u32 el = 0; (gdb) step Breakpoint 1, main () at main.c:41 41 u32 el = 0; (gdb) step Breakpoint 1, main () at main.c:41 41 u32 el = 0; (gdb) info b Num Type Disp Enb Address What 1 breakpoint keep y 0x0000000000400df4 in main at main.c:41 breakpoint already hit 3 times --- Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/openocd/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.