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

Implement controls to adjust OpenOCD behavior during when it tries to detect which watch point was hit (riscv_hit_watchpoint) #1076

Open
aap-sc opened this issue May 30, 2024 · 0 comments

Comments

@aap-sc
Copy link
Collaborator

aap-sc commented May 30, 2024

This issue is a result of conversation during the code review here: #1056 (comment)

Suggestions proposed by @JanMatCodasip (that I support)

1. disable riscv_hit_watchpoint() by default 

EDITORIAL NOTE: or at least implement a control to disable it.

create a command that allows the user to enable this alternative watchpoint hit detection algorithm
- if OpenOCD detects that "hit" bits are not implemented by the target:
    - produce a warning to the user
    - print a hint to the user how to enable the alternative watchpoint hit detection
    - print a warning to the user that the alternative detection has limitations (as we discussed above: it is not 100% reliable, not all ISA extensions are supported, extra memory reads are performed, etc.)
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

No branches or pull requests

1 participant