MCPcopy Index your code
hub / github.com/Marus/cortex-debug / writeMemoryRequestCustom

Method writeMemoryRequestCustom

src/gdb.ts:1296–1305  ·  view source on GitHub ↗
(response: DebugProtocol.Response, startAddress: number, data: string)

Source from the content-addressed store, hash-verified

1294 }
1295
1296 protected writeMemoryRequestCustom(response: DebugProtocol.Response, startAddress: number, data: string) {
1297 const address = hexFormat(startAddress, 8);
1298 this.miDebugger.sendCommand(`data-write-memory-bytes ${address} ${data}`).then((node) => {
1299 this.sendResponse(response);
1300 }, (error) => {
1301 response.body = { error: error };
1302 this.sendErrorResponse(response, 114, `Write memory error: ${error.toString()}`);
1303 this.sendEvent(new TelemetryEvent('Error', 'Writing Memory', `${startAddress.toString(16)}-${data.length.toString(16)}`));
1304 });
1305 }
1306
1307 protected readRegistersRequest(response: DebugProtocol.Response) {
1308 try {

Callers 1

customRequestMethod · 0.95

Calls 4

sendEventMethod · 0.95
hexFormatFunction · 0.90
sendCommandMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected