Quote input when adding breakpoint
File path and line number are now double quoted when specified explicitly. Before only when using raw input was it double quoted.
This commit is contained in:
parent
d34bfb7c43
commit
f0c30a91b0
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = '"' + 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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue