Skip to content
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

Allow stop packets with arbitary signal codes #19

Merged
merged 1 commit into from
Aug 26, 2020

Conversation

mchesser
Copy link
Contributor

@mchesser mchesser commented Aug 26, 2020

Currently gdbstub only allows SIGTRAP signals to be used in stop reply packets, however there are other signals that are useful to report (in particular I want to report SIGSEGV).

This PR partially issue report with a possible way of allowing this. However, maybe you want to have explicit enum variants for all reasonable stop reasons, and this technically a breaking change, so may need to wait to the next non-patch release.

@daniel5151 daniel5151 changed the base branch from master to dev August 26, 2020 16:37
@daniel5151 daniel5151 changed the base branch from dev to master August 26, 2020 16:44
@daniel5151
Copy link
Owner

Yep, this seems reasonable to me. Thanks for the PR!

Technically, semver lets me make breaking changes before 1.x.y, but if it's not urget, I'd rather lump this in with some other changes I'm making for 0.3.

That said, I'll be marking StopReason as #[non_exhaustive] in future versions, which aught to allow merging these sorts of changes in a non-breaking manner.

@daniel5151 daniel5151 merged commit 8fce3ed into daniel5151:master Aug 26, 2020
@daniel5151
Copy link
Owner

Also, please ignore the misc. branch thrashing that I just did.
All latest development will happen on the master branch moving forward.

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