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

Add supportsEvaluateForHovers #347

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

jonahgraham
Copy link
Contributor

There is a slight concern of turning this on for GDB as it is documented with this requirement:

The debug adapter supports a (side effect free) evaluate
request for data hovers.

Because of side-effects on read that is present in memory mapped registers in embedded systems this can cause unexpected reads of the target's registers. For Eclipse CDT I don't think there is any special code, so I think it is ok to do this here too. GDB also has a number of settings that may be useful to prevent accidental reads too.

Fixes eclipse-cdt-cloud/cdt-gdb-vscode#121

There is a slight concern of turning this on for GDB as it is documented
with this [requirement](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Capabilities):

> The debug adapter supports a (side effect free) `evaluate`
> request for data hovers.

Because of side-effects on read that is present in memory mapped
registers in embedded systems this can cause unexpected reads of the
target's registers.  For Eclipse CDT I don't think there is any
special code, so I think it is ok to do this here too. GDB also
has a number of settings that may be useful to prevent accidental
reads too.

Fixes eclipse-cdt-cloud/cdt-gdb-vscode#121
@jonahgraham jonahgraham merged commit 651a56d into eclipse-cdt-cloud:main Dec 16, 2024
4 checks passed
@jonahgraham jonahgraham deleted the hovers branch December 16, 2024 19:04
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.

Missing Variable Value Tooltips
1 participant