gdb: Add support for detecting deleted breakpoints #303
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added the change below.
This change depends on gdb having python support, which is a small breaking change.
I haven't tested if the changes intefere with other debugger configurations.
I dabbled with using the
--interpreter mi3
option before settling on this solution.Using the GDB/MI seems to be a lot cleaner but this would require a few major architectural changes to realgud and would break a few features like attaching to a running gdb session (I don't know of a way to enable the mi at runtime) and eshell support (as realgud would have to rewrite the command buffer).