target/arc: restore breakpoints in arc_resume()
commit2c10e3e2577604f5ec75b7f688f53fa2b3cbb0e7
authorEvgeniy Didin <didin@synopsys.com>
Thu, 30 Jul 2020 21:13:12 +0000 (31 00:13 +0300)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 13 Jan 2024 14:40:02 +0000 (13 14:40 +0000)
treebae3184490692c72ecea9b5068c47ac830edbd1a
parent04eda372634f995c732bed4f67855be258ab0e41
target/arc: restore breakpoints in arc_resume()

Presently, we rely on gdb to restore break/watchpoints upon resuming
execution in arc_resume(). To match this behavior in absence of gdb
(more specifically, when handle_breakpoints is true), this patch
explicitly re-enables all breakpoints and watchpoints in arc_resume().

This has previously been committed to the Zephyr project's openocd repo
(see https://github.com/zephyrproject-rtos/openocd/pull/31).

Change-Id: I59e9c91270ef0b5fd19cfc570663dc67a6022dbd
Signed-off-by: Evgeniy Didin <didin@synopsys.com>
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Signed-off-by: Artemiy Volkov <artemiy@synopsys.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7816
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/target/arc.c