-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Update single_step_gdb_behavior
of all architectures with proper value
#95
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this variant would technically be a breaking API change, and given how "small" the change is, I'd rather not push out a whole new gdbstub 0.7 for that.
Instead, lets just mark this variant as
#[doc(hidden)]
, and then I'll spin up a tracking task to remove the variant entirely whenever the next breaking release comes out.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you need to release
gdbstub
0.7 only for this?You can just leave this commit in the
dev/0.7
branch and release it along with all the other changes when they are done ingdbstub
0.7.And you can release
gdbstub_arch
0.2.1 for this commit. Then people won't encounter breaking API change for this evengdbstub
0.7 is released in the future.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I know all this, but this PR is targeting
master
, not (the currently non-existent)dev/0.7
branch.This is a good reminder that I should set up a
dev/0.7
branch now as well, and once I do that, it'd be reasonable to open a second PR that removes this variant on that branch (though given how small the change is, that's something I'd just do myself...)Please add the
#[doc(hidden)]
attribute as part of this PR, so that I can push outgdbstub
0.6.1 that soft-deprecates this variant, along with pushing outgdbstub_arch
0.2.1, which includes the semanticArch
changes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I add
SingleStepGdbBehavior::Unknown
back, although I'm really reluctant to do this.I think it's really not necessary to push out
gdbstub
0.6.1 that the only difference with 0.6.0 is#[doc(hidden)]
, because even ifUnknown
exists, nobody will use it. People won't notice it if they use the defined architecture, and if they want to create a new architecture, they will clear it is not something they need. You only need to push outgdbstub_arch
0.2.1.So the first commit after
gdbstub
0.6.0 is a breaking API change🙃Fine, it's your project and you are always right. You can just revert the later commit after you create the
dev/0.7
branch🙂There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I implemented the Unknown variant, I knew full well that it'd end up getting removed fairly quickly, and that I'd need to push out a new minor
gdbstub_arch
release, along with (possibly) a new minorgdbstub
release that soft-deprecates the newly added variant.While it may seem silly to add a feature to 0.6 that immediately gets soft deprecated, the reality is that - for my own sanity - I really just wanted to get 0.6 out the door ¯\_(ツ)_/¯
Not super sure what you mean by that.
Of course, whatever first commit ends up in
dev/0.7
will be a breaking change. That's the whole point of opening a newdev
branch - to put in any new breaking changes.It could have just as easily been the case that you disappeared for a few months, and in the meantime, someone else came along and opened a PR to add a new non-breaking protocol extension to the library, which wouldn't even require opening a new
dev/0.7
branch