Skip to content

Adding processor breakpoint enable/disable button. #193

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

Merged
merged 2 commits into from
Jul 31, 2025

Conversation

not-chciken
Copy link
Contributor

Inspired by GDB's capability of disabling/enabling breakpoints, I added an enable button directly next to the delete button of a processor breakpoint. This allows to disable a breakpoint without deleting it.
Unfortunately, to keep track of deleted breakpoints I had to add a field to struct stDisassembleRecord.
If you like the idea as well, I could add the same feature for memory breakpoints .
Furthermore, one could get rid of emu_debug_disable_breakpoints_cpu by simply disabling all breakpoints.
Any feedback is welcome.

@drhelius
Copy link
Owner

Thanks! I'll check it in the next few days days and get back to you.

@drhelius
Copy link
Owner

It's fine thanks! just added proper initialization.
You can also add it to mem breakpoints if you wish, I will happily merge.

Breakpoints in Gearboy are quite bad designed/implemented. This is old code I'm not very proud of 🤣

You can have a look at the https://github.com/drhelius/Geargrafx debugger, maybe in the future I will improve Gearboy in the same way.

@drhelius drhelius merged commit d252466 into drhelius:master Jul 31, 2025
10 checks passed
@drhelius
Copy link
Owner

emu_debug_disable_breakpoints_cpu is still fine.

You can quickly disable all and get back to whatever combination of enabled or disabled breakpoints you had before. This functionality is present in Geargrafx.

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