-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support resetting the target via GDB's monitor [COMMAND]
command
#24
Comments
monitor [COMMAND]
command)monitor [COMMAND]
command
I've been unable to find a way to tell GDB that target execution has resumed. There doesn't seem to be any packet we can send, in response to the This means we cannot offer users the ability to reset the target and let it run, with a single command. But I don't think this is much of a problem, as the user can just run the continue command right after the reset command:
For this reason, I don't think there's any need for the Should be done with this soon. |
IIRC, on ARM targets:
I do see a use for |
Ah, that's interesting @maximevince. I wasn't aware other GDB servers would do that.
I believe Bloom already does this for you. Ending the GDB debug session whilst the target is halted will result in Bloom resuming target execution. And if Bloom is configured to release the debug tool at the end of a debug session, then this will always mean resuming target execution (as detaching from the target will put it back into a running state). |
Is there a way to reset and halt the target now? Can it be done through the Insight UI? |
Hi @maximevince Development for this is mostly complete but it's not yet ready for release. There are some parts of the target resetting implementation that need some tidying. The changes are in the In the meantime, you could simply restart the debug session to trigger a target reset. It's not the nicest solution, but should work for the short-term. Bloom will automatically reset the target at the beginning of a new debug session, so killing the session (in GDB) and starting a new one should be enough. Do you use an IDE? CLion provides a function to reset the target, and it works by doing exactly as described above - it simply ends the GDB remote debug session and starts a new one. If you do go with the above approach, you may want to set I will let you know when I have a better idea for when 0.9.0 will be published. |
Development for this is complete. The changes are in the develop branch. They will be shipped with v0.9.0. See the associated milestone for updates (https://github.com/navnavnav/Bloom/milestone/4). |
GDB users can send special (custom) commands to the server via the
monitor
command. Some GDB servers used for embedded debugging support the customreset
command, which triggers a target reset. Users can invoke this by runningmonitor reset
in GDB.It would be nice if Bloom supported the following custom commands:
reset
- To reset the target and let it run.reset halt
- To reset the target and hold it in a stopped state.I plan to include this work as part of the refactor of the GDB server implementation.
The text was updated successfully, but these errors were encountered: