Skip to content

Commit 559ee58

Browse files
committed
Add missing instruction breakpoint and read/write memory request to test support
Fixes #323
1 parent 47a2dc7 commit 559ee58

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

testSupport/src/debugClient.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ export class DebugClient extends ProtocolClient {
191191
return this.send('setExceptionBreakpoints', args);
192192
}
193193

194+
public setInstructionBreakpointsRequest(args: DebugProtocol.SetInstructionBreakpointsArguments): Promise<DebugProtocol.SetInstructionBreakpointsResponse> {
195+
return this.send('setInstructionBreakpoints', args);
196+
}
197+
194198
public dataBreakpointInfoRequest(args: DebugProtocol.DataBreakpointInfoArguments): Promise<DebugProtocol.DataBreakpointInfoResponse> {
195199
return this.send('dataBreakpointInfo', args);
196200
}
@@ -287,6 +291,14 @@ export class DebugClient extends ProtocolClient {
287291
return this.send('exceptionInfo', args);
288292
}
289293

294+
public readMemoryRequest(args: DebugProtocol.ReadMemoryArguments): Promise<DebugProtocol.ReadMemoryResponse> {
295+
return this.send('readMemory', args);
296+
}
297+
298+
public writeMemoryRequest(args: DebugProtocol.WriteMemoryArguments): Promise<DebugProtocol.WriteMemoryResponse> {
299+
return this.send('writeMemory', args);
300+
}
301+
290302
public customRequest(command: string, args?: any): Promise<DebugProtocol.Response> {
291303
return this.send(command, args);
292304
}

testSupport/src/protocolClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export class ProtocolClient extends ee.EventEmitter {
4141
public send(command: 'setBreakpoints', args: DebugProtocol.SetBreakpointsArguments) : Promise<DebugProtocol.SetBreakpointsResponse>;
4242
public send(command: 'setFunctionBreakpoints', args: DebugProtocol.SetFunctionBreakpointsArguments) : Promise<DebugProtocol.SetFunctionBreakpointsResponse>;
4343
public send(command: 'setExceptionBreakpoints', args: DebugProtocol.SetExceptionBreakpointsArguments) : Promise<DebugProtocol.SetExceptionBreakpointsResponse>;
44+
public send(command: 'setInstructionBreakpoints', args: DebugProtocol.SetInstructionBreakpointsArguments) : Promise<DebugProtocol.SetInstructionBreakpointsResponse>;
4445
public send(command: 'dataBreakpointInfo', args: DebugProtocol.DataBreakpointInfoArguments) : Promise<DebugProtocol.DataBreakpointInfoResponse>;
4546
public send(command: 'setDataBreakpoints', args: DebugProtocol.SetDataBreakpointsArguments) : Promise<DebugProtocol.SetDataBreakpointsResponse>;
4647
public send(command: 'continue', args: DebugProtocol.ContinueArguments) : Promise<DebugProtocol.ContinueResponse>;
@@ -64,6 +65,8 @@ export class ProtocolClient extends ee.EventEmitter {
6465
public send(command: 'gotoTargets', args: DebugProtocol.GotoTargetsArguments) : Promise<DebugProtocol.GotoTargetsResponse>;
6566
public send(command: 'completions', args: DebugProtocol.CompletionsArguments) : Promise<DebugProtocol.CompletionsResponse>;
6667
public send(command: 'exceptionInfo', args: DebugProtocol.ExceptionInfoArguments) : Promise<DebugProtocol.ExceptionInfoResponse>;
68+
public send(command: 'readMemoryRequest', args: DebugProtocol.ReadMemoryArguments) : Promise<DebugProtocol.ReadMemoryResponse>;
69+
public send(command: 'writeMemoryRequest', args: DebugProtocol.WriteMemoryArguments) : Promise<DebugProtocol.WriteMemoryResponse>;
6770
public send(command: string, args?: any) : Promise<DebugProtocol.Response>;
6871

6972
public send(command: string, args?: any): Promise<DebugProtocol.Response> {

0 commit comments

Comments
 (0)