Merge pull request #81 from rookwood101/patch-1

Quote input when adding breakpoint
This commit is contained in:
Jan Jurzitza 2016-11-14 23:50:33 +01:00 committed by GitHub
commit eaeb6c13c4

View file

@ -468,7 +468,7 @@ export class MI2 extends EventEmitter implements IBackend {
if (breakpoint.raw)
location = '"' + escape(breakpoint.raw) + '"';
else
location = breakpoint.file + ":" + breakpoint.line;
location = '"' + escape(breakpoint.file) + ":" + breakpoint.line + '"';
this.sendCommand("break-insert -f " + location).then((result) => {
if (result.resultRecords.resultClass == "done") {
let bkptNum = parseInt(result.result("bkpt.number"));
@ -666,4 +666,4 @@ export class MI2 extends EventEmitter implements IBackend {
protected process: ChildProcess.ChildProcess;
protected stream;
protected sshConn;
}
}