Added option to print calls from GDB

This commit is contained in:
WebFreak001 2016-02-10 20:54:57 +01:00
commit 544c3a488b
3 changed files with 17 additions and 0 deletions

View file

@ -476,6 +476,8 @@ export class MI2 extends EventEmitter implements IBackend {
}
sendRaw(raw: string) {
if (this.printCalls)
this.log("log", raw);
if (this.isSSH)
this.stream.write(raw + "\n");
else
@ -502,6 +504,7 @@ export class MI2 extends EventEmitter implements IBackend {
return this.isSSH ? this.sshReady : !!this.process;
}
printCalls: boolean;
private isSSH: boolean;
private sshReady: boolean;
private currentToken: number = 1;