Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[debug] Reserve triggers propperly in HwbpManual #581

Merged

Conversation

en-sc
Copy link
Collaborator

@en-sc en-sc commented Sep 6, 2024

riscv-collab/riscv-openocd#1111 introduces a change in OpenOCD behavior: a manual trigger should be manually removed to step/resume from it.
This was not concidered in previous stop-gap solutions (76ff703 and 8cc4918)

This commit:

  1. Determines if reserve trigger is supported by the target. This can be removed once target/riscv: manage triggers available to OpenOCD for internal use riscv-collab/riscv-openocd#1111 is merged.
  2. Marks HwbpManual test as not applicable in case reserve trigger is not supported.
  3. Accounts for the change in OpenOCD's behavior when stepping from a manual BP.
  4. Cleans up some minor mistakes in HwbpManual

@en-sc en-sc requested a review from aap-sc September 6, 2024 11:34
@en-sc en-sc self-assigned this Sep 6, 2024
@en-sc en-sc force-pushed the en-sc/reserve-trigger-fix-propper branch from ae50b69 to ee10e9c Compare September 6, 2024 11:38
debug/gdbserver.py Outdated Show resolved Hide resolved
debug/gdbserver.py Outdated Show resolved Hide resolved
riscv-collab/riscv-openocd#1111 introduces a
change in OpenOCD behavior: a manual trigger should be manually removed
to step/resume from it.
This was not concidered in previous stop-gap solutions
(76ff703 and
8cc4918)

This commit:
1. Determines if `reserve trigger` is supported by the target.
   This can be removed once
   riscv-collab/riscv-openocd#1111 is merged.
2. Marks `HwbpManual` test as not applicable in case `reserve trigger`
   is not supported.
3. Accounts for the change in OpenOCD's behavior when stepping from a
   manual BP.
4. Cleans up some minor mistakes in `HwbpManual`
@en-sc en-sc force-pushed the en-sc/reserve-trigger-fix-propper branch from ee10e9c to 1839696 Compare September 6, 2024 12:20
@en-sc en-sc merged commit 51de008 into riscv-software-src:master Sep 6, 2024
2 checks passed
@en-sc en-sc deleted the en-sc/reserve-trigger-fix-propper branch September 6, 2024 12:34
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.

2 participants