MCPcopy Create free account
hub / github.com/Marus/cortex-debug / readRegisterListRequest

Method readRegisterListRequest

src/gdb.ts:1362–1382  ·  view source on GitHub ↗
(response: DebugProtocol.Response)

Source from the content-addressed store, hash-verified

1360 }
1361
1362 protected readRegisterListRequest(response: DebugProtocol.Response) {
1363 this.miDebugger.sendCommand('data-list-register-names').then((node) => {
1364 if (node.resultRecords.resultClass === 'done') {
1365 let registerNames;
1366 node.resultRecords.results.forEach((rr) => {
1367 if (rr[0] === 'register-names') {
1368 registerNames = rr[1];
1369 }
1370 });
1371 response.body = registerNames;
1372 }
1373 else {
1374 response.body = { error: node.resultRecords.results };
1375 }
1376 this.sendResponse(response);
1377 }, (error) => {
1378 response.body = { error: error };
1379 this.sendErrorResponse(response, 116, `Unable to read register list: ${error.toString()}`);
1380 this.sendEvent(new TelemetryEvent('Error', 'Reading Register List', ''));
1381 });
1382 }
1383
1384 private waitForServerExitAndRespond(response: DebugProtocol.DisconnectResponse) {
1385 if (!this.server.isExternal()) {

Callers 1

customRequestMethod · 0.95

Calls 3

sendEventMethod · 0.95
sendCommandMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected