Skip to content

Conversation

AlexandraKulyatskaya
Copy link

Add auto-selection of breakpoint size for RISC-V targets. The new length depends on C extension. If the C extension is used, the auto-selected length is 2 bytes. Otherwise, the default length is 4 bytes.
The first commit is cherry-picked from: https://review.openocd.org/c/openocd/+/9116

Add default breakpoint length specifier. When passed, derivation of
breakpoint length is delegated to target-type-specific method.
Link: https://review.openocd.org/c/openocd/+/9116

Change-Id: Ie3473514beace15b76714aa6d5441122cd3262aa
Signed-off-by: Kulyatskaya Alexandra <[email protected]>
Add auto-selection of breakpoint size for RISC-V targets. The new length
depends on C extension. If the C extension is used, the auto-selected
length is 2 bytes. Otherwise, the default length is 4 bytes.

Change-Id: I0cf4e2a06b202b61048322ee61a06101cb55a23a
Signed-off-by: Kulyatskaya Alexandra <[email protected]>
AlexandraKulyatskaya added a commit to AlexandraKulyatskaya/openocd that referenced this pull request Sep 8, 2025
…reakpoint size

Link: riscv-collab/riscv-openocd#1288
Add auto-selection of breakpoint size for RISC-V targets. The new length
depends on C extension. If the C extension is used, the auto-selected
length is 2 bytes. Otherwise, the default length is 4 bytes.

Change-Id: I0cf4e2a06b202b61048322ee61a06101cb55a23a
Signed-off-by: Kulyatskaya Alexandra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant