-
Notifications
You must be signed in to change notification settings - Fork 150
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityunder-discussionIssue is under discussion for relevance, priority, approachIssue is under discussion for relevance, priority, approach
Milestone
Description
Hi,
In order to implement a full set of debug tools from DAP, I would like if it would be ok to implement a request such as WriteMemoryRequest
, the same way it works for ReadMemoryRequest
interface WriteMemoryArguments {
/**
* Memory reference to the base location from which data should be written.
*/
memoryReference: string;
/**
* Bytes to write, [encoded using base64 like ReadMemoryRequest ?]
*/
content: string;
/**
* Optional offset (in bytes) to be applied to the reference location before
* writing data. Can be negative.
*/
offset?: number;
}
For the response, I don't know if it can be the same way as ReadMemoryResponse. It can also be a new Memory event with a flag 'modified' and a content/address
interface WriteMemoryResponse {
// body is not mandatory if write has worked correctly
body?: {
/**
* The address of the first byte of data returned.
* Treated as a hex value if prefixed with '0x', or as a decimal value
* otherwise. (It would match previous memoryReference+offset)
*/
address?: string;
/**
* The bytes read from memory, encoded using base64.
*/
data?: string;
};
}
Thanks in advance
thegecko
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityunder-discussionIssue is under discussion for relevance, priority, approachIssue is under discussion for relevance, priority, approach