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 passing a custom initial stop reason #116

Open
daniel5151 opened this issue Nov 12, 2022 · 0 comments
Open

Allow passing a custom initial stop reason #116

daniel5151 opened this issue Nov 12, 2022 · 0 comments
Labels
API-non-breaking Non-breaking API change design-required Getting this right will require some thought new-api Add a new feature to the API (possibly non-breaking)

Comments

@daniel5151
Copy link
Owner

Right now, gdbstub hard-codes the initial stop reason response to T05thread:<thread-id>; (in response to the ? packet).

This can be annoying in gdbstub integrations where the GDB server is only launched in response to some exceptional event (e.g: a guest OS triple-faulting, a process creating a new thread, etc...), where ideally, you'd want to respond with a more appropriate stop reason (e.g: a more appropriate signal number, a new thread response, etc...)

It'd be nice to add some kind of optional API to gdbstub that allows overriding the initial stop reason.

@daniel5151 daniel5151 added new-api Add a new feature to the API (possibly non-breaking) API-non-breaking Non-breaking API change design-required Getting this right will require some thought labels Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API-non-breaking Non-breaking API change design-required Getting this right will require some thought new-api Add a new feature to the API (possibly non-breaking)
Projects
None yet
Development

No branches or pull requests

1 participant