(response: DebugProtocol.Response)
| 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()) { |
no test coverage detected