KEMBAR78
Clarify EOF behavior for readMemory · Issue #239 · microsoft/debug-adapter-protocol · GitHub
Skip to content

Clarify EOF behavior for readMemory #239

@connor4312

Description

@connor4312

Currently, VS Code does not deal with unreadable bytes in readMemory requests, so that's just treated as the "end of file"/end of memory range. However that's a very temporary solution.

Currently there's two ways I could see for this to be signalled:

  • Via unreadableBytes. In the end of file case, the "number of bytes that must be skipped before a subsequent 'readMemory' request will succeed" is, however, infinite, which cannot be expressed as a numeric JSON type.
  • By having the data being shorter than the number of requested bytes (0 the offset is at or after the end of the sequence). If this is something that implementors should depend on, we should document it explicitly.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions