Skip to content

Allow halting native process with a fake stop reason #19

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

Closed
wants to merge 1 commit into from

Conversation

dmpots
Copy link
Collaborator

@dmpots dmpots commented Jul 19, 2025

Example idea of how we can stop the cpu process with a fake stop reason so it can be auto-resumed.

This is useful because we want to stop the CPU process to set a breakpoint at the address we get from the roc dbgapi. Stopping the cpu process at the point we get the callback ensures that set the breakpoint before the CPU process tries to load any new kernel code objects.

We need a fake stop reason so that the stop is not actually show to the user. It should be handled automatically by the debugger.

An alternative approach is in #18. There we stop the GPU process with a fake stop reason and use the GPUActions to set the breakpoint. The worry with that implementation is that the CPU process will not be stopped immediately and so we could miss hitting the breakpoint it asks us to set.

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