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

Minor issue: Different error message on removal of non-existent breakpoint #1004

Open
MarekVCodasip opened this issue Jan 25, 2024 · 4 comments

Comments

@MarekVCodasip
Copy link
Collaborator

Due to differences between vanilla and riscv-openocd, there is a different error message printed when removing non-existent breakpoint on SMP vs non-SMP targets. (Difference manifests on non-SMP)

Non SMP target:
Error during removal of breakpoint at address (addr)

SMP target:
no breakpoint at address (addr) found

See src/target/breakpoints.c:335 for more details.

@aap-sc
Copy link
Collaborator

aap-sc commented Jan 25, 2024

@MarekVCodasip , @en-sc in my opinion the commit that introduced this discrepancy is rather controversial . I believe it was @timsifive who introduced the change, though.

Does anyone know what was the reason for introducing this and why the patch is not in the upstream openocd?

@aap-sc
Copy link
Collaborator

aap-sc commented Jan 25, 2024

To be clear, i'm talking about this commit: 39a4f37

@TommyMurphyTM1234
Copy link
Collaborator

Does the discussion on the relevant PR help at all?

@aap-sc
Copy link
Collaborator

aap-sc commented Jan 25, 2024

@TommyMurphyTM1234 actually it does :). To my surprise I've already asked a question regarding the upstream changes. #879 (comment) O_o. And even got a reply (and acknowledged it). LOL. So basically there is a chunk of functionality related to unavailable target support which is not (or was not) upstreamed at the time.

Looking at the current code now - I have minor concerns that it may be difficult to upstream this specific functionality.

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

3 participants